MATLAB - 2D Plotting
Identify the error in this MATLAB code snippet:
plot(x, y1)
hold on
plot(x, y2)
hold off
plot(x, y1)
hold on
plot(x, y2)
hold off
hold on usagehold on can be called after the first plot to retain it; no syntax error here.hold on must be before first plothold off placement15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions