Why do I receive an error saying "Plots must be of the same type and size to be superimposed" when running the uss.step function from Robust Control Toolbox 3.4 (R2009b)?

144 views (last 30 days)
I am currently running sample code from the Robust Control Toolbox.
At the line:
step(G,2)
I receive the following error: ERROR: Plots must be of the same type and size to be superimposed

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 17 Jan 2017
This error typically occurs when the following conditions are true:
1) The current axes (gca) contain a plot of different nature (e.g., BODE)
2) HOLD ON was applied to these axes
The error occurs because a BODE plot and a STEP plot cannot be superimposed (which is what HOLD ON requests).
In order to work around this issue, either toggle the HOLD on the current axes, or open a new figure window.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2009b

Community Treasure Hunt

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

Start Hunting!