May 29th, 2012, 04:11 PM
I'm new to MATLAB and programming, but I hoping to find out if I can have a variables in my program take on certain values only for certain time intervals. For example, I am using ode23s to solve some equations for me, but for the time interval [0,10] I would like one of the variables in from the equations to be 10, but from [10, 375] the variable should be 0.
Can anyone help me out? Thanks!!!
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.