How can I create a code in matlab that changes the value of a Variable depending on the time interval?
For example different values of X as time progresses:
x=1 for 0<=t<900
x=2 for 900<=t<1800
X=3 for 1800<=t<=2700
X is my variable and t is time.
Best Answer