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.

Answers (1)

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')

Asked:

on 4 Jan 2018

Community Treasure Hunt

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

Start Hunting!