How to color between two step responses
Show older comments
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.
1 Comment
Jan
on 23 Jan 2018
Answers (1)
Sulaymon Eshkabilov
on 19 May 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')
Categories
Find more on Tuning Goals in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!