필터 지우기
필터 지우기

How to draw the response to a negative step command in matlab?

조회 수: 9 (최근 30일)
Kyana Shayan
Kyana Shayan 2016년 12월 26일
답변: Star Strider 2016년 12월 26일
Hi everyone, I am doing a MSc project and I need to draw the response of a transfer function to a negative step input. Can you please elaborate how can I do this? and Also how can I change the time step in order to achieve a smooth time response?
Thanks in advance
P.s. The transfer function code is as follow:
sys=tf([0.421 -0.6734 -23.46 -71.02 -229 -359.5 -2.766 0.034 0.0002239 -6.719e-16],[1 24.5 102.2 344.8 765.8 915.2 685.6 19.19 4.86 0.05328 -3.802e-15])

답변 (1개)

Star Strider
Star Strider 2016년 12월 26일
Use the StepDataOptions function to set the options for the step function. You need to set the amplitude to -1.
The Code:
sys=tf([0.421 -0.6734 -23.46 -71.02 -229 -359.5 -2.766 0.034 0.0002239 -6.719e-16],[1 24.5 102.2 344.8 765.8 915.2 685.6 19.19 4.86 0.05328 -3.802e-15])
opt = stepDataOptions('StepAmplitude',-1);
[y,t] = step(sys,opt);
figure(1)
plot(t, y)

카테고리

Help CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by