MATLAB: Can someone tell me how to plot the data

MATLABplotting

i need to plot the data in matlab and need help in it i am a biggner

Best Answer

to plot analog data. the command used is the
plot(t,x)
where t is time vector and the x is the signal to be plotted. the length of both vectors should be equal
in order to plot the digital data the command used is
stem(n,x)
where the n is the samples and the x is the data points. the length of both vectors should be equal.
hope answer the question