MATLAB - 2D Plotting
What will be the output of the following MATLAB code?
t = 0:0.1:1;
plot(t, t);
hold on;
plot(t, t.^2);
t = 0:0.1:1;
plot(t, t);
hold on;
plot(t, t.^2);
hold on keeps the first plot visible, so the second plot y = t^2 is drawn on the same figure as a curve.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions