ODE with in a piece wise plot

*To*: mathgroup at smc.vnet.net*Subject*: [mg104225] ODE with in a piece wise plot*From*: "Becky" <noslowski at comcast.net>*Date*: Sat, 24 Oct 2009 02:39:58 -0400 (EDT)

Can this be done? First of all, a basic example and then what I want to change. E1=If[-1<=x<=0,1,If[3<=x<=5,2,If[-1<=x<=3,(x-1)]]] Plot[E1,{x,-5,5}] The purpose of this was to join all three areas into one plot. Now! I want to put in a ODE where the (x-1) is. Is this possible, and if so, would you mind giving me an example?