Plotting of output responses
Show older comments
I have a PID feedback controller incorporating a load disturbance in the way of a unit step the two step inputs come together through a summing block and then are sent to a workspace.
If i put the step input to 1 on the controller step and the step input to 0 on the distrubance step and plot it i get my output response If i then do the oppposite and plot it i get my disturbance response.
What i would like to do is plot the two responses on the same graph showing them overlapping how do i do this
Answers (1)
Azzi Abdelmalek
on 10 Feb 2014
If y1 and y2 are your two output
plot(y1,'r')
hold on
plot(y2,'b')
hold off
Categories
Find more on Control System Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!