MATLAB - 2D Plotting
Identify the error in this MATLAB code for a scatter plot:
x = 1:4;
y = [5 6 7];
scatter(x, y)
x = 1:4;
y = [5 6 7];
scatter(x, y)
x has length 4, but y has length 3, which is invalid for scatter.x and y to be the same length to plot pairs of points.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions