Plot selected data of the time-series

6 次查看(过去 30 天)
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

采纳的回答

KSSV
KSSV 2018-3-6
Extract the respective positions values and plot.
iwant = Z(40:50,:) ; % this picks Z data from 40 to 50.
Now, you can plot iwant.
  1 个评论
NS
NS 2018-3-6
编辑:NS 2018-3-6
Thanks for the answer. I face another problem now which is if I have the data like that
x=[-75 -74.7649962041000 -74.5299924082000 -74.2949886124000 -74.0599848165000 -73.8249810206000 -73.5899772247000]
y=[ -59.9813461091000 -59.9813461091000 -59.9813461091000 -59.9813461091000 -59.9813461091000 -59.9813461091000 -59.9813461091000]
z is 7*17 matrix. Now if I want to plot time-series value of z for -73.8249810206000 and -59.9813461091000 these x and y value. In addition, How can I find the index value of the element that is closest or equal to -73.8249810206000 and -59.9813461091000 if i put the value like -73.824 -59.981 (only put the 3digits after point) and its extract the values same as -73.8249810206000 and -59.9813461091000.
Thanks

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Time Series 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by