MATLAB: Plotting non-linearly spaced data points

plot

If I have two vectors X = [x1, x2, … , xn] and Y = [y1, y2, … , yn] of the same length how do I plot all points (x1, y1), … , (xn, yn) if the values of X are not linearly spaced?
%For a simple example, If I had
X = sort(round(10*rand(1, 10)));
Y = 1:10;
%How would I plot every point (X(i), Y(i)) for i = 1:10?

Best Answer

plot(x, y)
There is no need for the x or y to be uniformly spaced for plot()