MATLAB: Plot selected data of the time-series

MATLABstatisticstime series

Hi,
I have 3D data set x,y and z. z is the 200*17 matrix where each column represents a year (2000-2017). z values are corresponding to the x,y value where x and y are 200*1. Now I want to plot the time-series value of z (2000-2017) for 40-50 value of x and y.
x= [1 2 3 …40 41 42…49 50….200]; y= [1 2 3 …40 41 42…49 50….200]; z= [1 2 3..17; 1 2 3…17; ……….till 200]
Thanks in advance

Best Answer

Extract the respective positions values and plot.
iwant = Z(40:50,:) ; % this picks Z data from 40 to 50.
Now, you can plot iwant.