help with programming in matlab - laplace and stepinfo to see overshooting
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!