help with programming in matlab - laplace and stepinfo to see overshooting

3 ビュー (過去 30 日間)
Sagi
Sagi 2013 年 6 月 22 日
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 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by