How can I store the values of step response function in array which has time delay ?
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Divija Aleti
am 2 Dez. 2020
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 Kommentare
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!