MATLAB - 3D Plotting and Visualization
What is the main issue with this MATLAB animation code?
figure;
for i = 1:5
plot(i, i^2, 'bo');
pause(0.5);
end
figure;
for i = 1:5
plot(i, i^2, 'bo');
pause(0.5);
end
plot without hold on clears the previous plot.hold onhold on, only the last plotted point remains visible after the loop.hold on before the loop to retain all points during animation.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions