how to shade between two discrete time step responses?

4 visualizaciones (últimos 30 días)
sudharsana rao
sudharsana rao el 23 de En. de 2018
Comentada: Birdman el 23 de En. de 2018
how shade between two discrete time systems of step responses
  5 comentarios
sudharsana rao
sudharsana rao el 23 de En. de 2018
Editada: KSSV el 23 de En. de 2018
T=0.01;
z=tf('z',T)
s1=tf([1 3 8],[6 9 4.9 0.8]);
s2=tf([2 4 10],[6 9.5 5 0.85],T);
t=0:0.1:3;
[y1,t] = step(s1,t);
[y2,t] = step(s2,t);
fill([t fliplr(t)],[y2 fliplr(y1)],'r')

Iniciar sesión para comentar.

Respuesta aceptada

Birdman
Birdman el 23 de En. de 2018
T=0.01;
z=tf('z',T)
s1=tf([1 3 8],[6 9 4.9 0.8]);
s2=tf([2 4 10],[6 9.5 5 0.85],T);
t=0:0.01:3;
[y1,t] = step(s1,t);
[y2,t] = step(s2,t);
fill([t.' fliplr(t.')],[y2.' fliplr(y1.')],'r')
with the above code, you get the plot in attached figure. Hope this helps.
  2 comentarios
sudharsana rao
sudharsana rao el 23 de En. de 2018
thanks for this work, but still, this code is not giving shade to the entire sample
Birdman
Birdman el 23 de En. de 2018
What did you expect?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Modeling 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!

Translated by