help with programming in matlab - laplace and stepinfo to see overshooting
4 views (last 30 days)
Show older comments
in my program i'm trying to see a functions settling time and over-shoot, it can be usually done with "stepinfo", but i cannot manage to do it right, what can i do better?
syms s t
c=1200; k=1/6;
G=1/(3*s^2+c*s+k);
y=ilaplace(G,s,t);
fplot(matlabFunction(y), [0,5],'r')
grid on
title('The Shock Response - y(t)','fontweight','bold')
xlabel('t(sec)')
ylabel('y(m)')
legend('y(t)')
t=0:0.01:10;
stepinfo(y,t);
the errors:
Error using stepinfo (line 58)
The input arguments "Y" and "T" of the "stepinfo" and "lsiminfo" command must have compatible sizes.
Error in q2C (line 15)
stepinfo(y,t);
Sagi.
0 Comments
Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!