MATLAB - 2D Plotting
What will be the output of the following MATLAB code?
plot(1:5, [10 20 30 40 50]);
axis([0 6 0 60]);
disp(xlim);
plot(1:5, [10 20 30 40 50]);
axis([0 6 0 60]);
disp(xlim);
axis([0 6 0 60]) sets x-axis limits to 0 and 6, y-axis limits to 0 and 60.xlim returns the current x-axis limits, which are [0 6].15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions