How can I store the values of step response function in array which has time delay ?
13 ビュー (過去 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!