MATLAB: Plotting graph with given points

given ptgraphMATLABplotpoint

basically we always plot graph of certain function such as x = 0 : 1 : 10 y = sinx; plot(x,y,'-r^')
lets say given x = 2 y = 15 x = 3 y = 8 x = 8 y = 30 the point is random, how to plot this graph?

Best Answer

x=[2,3,8]; y=[15,8,30]; plot(x.y)
or
plot(x,y,'o') for dots