How do I define the limits of a discrete model? Why do I receive this error for every t and sht variables?
Show older comments
How do I define the limits of a discrete model? Why do I receive this error for every t and sht variables?
t= 0:0.01:10;
x=tf([1],[1 1]);
sht=0.5;
cd=c2d(x,sht,'zoh')
Transfer function: 0.3935 ---------- z - 0.6065
Sampling time (seconds): 0.5 step(cd,t)
??? Error using ==> DynamicSystem.step at 84 When specifying a time vector for time response simulations, the time step match the sampling time of discrete-time models.
3 Comments
Sean de Wolski
on 3 Jun 2011
When first I saw your variable names I kind of had to laugh a little :)
Fangjun Jiang
on 3 Jun 2011
Me too. Definitely need to avoid that.
sadel
on 3 Jun 2011
Accepted Answer
More Answers (0)
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!