Hi, I have this transfer function: >> num=[122.1]; >> den=[1,3,3,1]; >> G=tf(num,den)
G =
122.1
---------------------
s^3 + 3 s^2 + 3 s + 1
i usually plot the step function as >>step(G) But in this case, I want to know the step response with these specifications: Inicial value= 28 Final value=70 Rise time=20
If i specify this parameters as: requirement = sdo.requirements.StepResponseEnvelope('FinalValue',70,'InicialValue',28,'RiseTime',20)
How could I affect step function with the last parameters? Thanks

 채택된 답변

Star Strider
Star Strider 2017년 11월 5일

0 개 추천

Using stepDataOptions (link) you can change the amplitude and the offset, but nothing else. So you can specify everything except rise time.
You would have to create your own function to generate that input.
Something like this will get you started:
t = 0:99;
u = (2.1*t + 28) .* ((t >= 0) & (t<= 20)) + 70.*(t>20);
Plot it, then make any necessary changes to get it to work with your transfer function.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with Control System Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by