Finding the ramp response to a transfer function
173 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Aleem Andrew
el 17 de Mzo. de 2021
Comentada: Mathieu NOE
el 18 de Mzo. de 2021
If T is the transfer function defined below, how do you find the ramp response?
G = tf(poly([-2 -3]),poly([0 -1])); T=feedback(G,1)
0 comentarios
Respuesta aceptada
Mathieu NOE
el 17 de Mzo. de 2021
You can use lsim function for any input
t=0:0.01:10
slope = 2;
ramp=slope*t; % Your input signal
G = tf(poly([-2 -3]),poly([0 -1])); T=feedback(G,1); % Your transfer function
[y,t]=lsim(G,ramp,t);
plot(t,y)
2 comentarios
Mathieu NOE
el 18 de Mzo. de 2021
hello
sure, but whatever the type of input signal, its dimensions must be the same as time vector (t)
I also changed the name of the input to avoid any confusion (it's not a ramp anymore)
so this is the correct code :
t=0:0.01:10;
mystep=1*ones(size(t)); % Your input signal
G = tf(poly([-2 -3]),poly([0 -1])); T=feedback(G,1); % Your transfer function
[y,t]=lsim(G,mystep,t);
plot(t,y)
Más respuestas (0)
Ver también
Categorías
Más información sobre Multirate Signal Processing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!