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

9 visualizaciones (últimos 30 días)
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...

Respuestas (1)

Divija Aleti
Divija Aleti el 2 de Dic. de 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:

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by