How can I store the values of step response function in array which has time delay ?

9 views (last 30 days)
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...

Answers (1)

Divija Aleti
Divija Aleti on 2 Dec 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:

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!