How can I store the values of step response function in array which has time delay ?
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi I have a transfer function like this:
>> num = [0.5 1];
>> den = [6 23.5 35.5 25.5 8.5 1];
>> G = tf(num,den,'Inputdelay',3)
G =
0.5 s + 1
exp(-3*s) * --------------------------------------------------
6 s^5 + 23.5 s^4 + 35.5 s^3 + 25.5 s^2 + 8.5 s + 1
What i want is to store its value in array but don't know how.
I tried
>> y=step(num,den);
>> t=0:0.1:30;
>> y
but it only shows the results without time delay...
plz help...
댓글 수: 0
답변 (1개)
Divija Aleti
2020년 12월 2일
Hi,
Have a look at the following code which will give you the desired output.
num = [0.5 1];
den = [6 23.5 35.5 25.5 8.5 1];
G = tf(num,den,'Inputdelay',3);
t=0:0.1:30;
y=step(G,t)
For additional information on the 'step' function, refer to this link:
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!