Plotting of output responses

5 ビュー (過去 30 日間)
Daniel
Daniel 2014 年 2 月 10 日
回答済み: Azzi Abdelmalek 2014 年 2 月 10 日
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

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 10 日
If y1 and y2 are your two output
plot(y1,'r')
hold on
plot(y2,'b')
hold off

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by