フィルターのクリア

Plot selected data of the time-series

6 ビュー (過去 30 日間)
NS
NS 2018 年 3 月 6 日
編集済み: NS 2018 年 3 月 6 日
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 Center および File ExchangeTime Series についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by