How to color between two step responses

I tried so much to fill the area between two step responses using so many functions, but I did not find what I am looking for. Please show any command function
I attached a file Capture.PNG I want to plot same as the attached file.

Respuestas (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 19 de Mayo de 2019
Simple solution is this:
Sys1 = tf([1 2], [1 1 300 250]);
Sys2 = tf([1 2], [1 5 300 250]);
t = 0:.01:50;
figure
step(Sys1, t, '-b'), hold on
step(Sys2, t, '-r'), grid on
legend('System 1', 'System 2', 'location', 'best')

Etiquetas

Preguntada:

el 4 de En. de 2018

Respondida:

el 19 de Mayo de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by