필터 지우기
필터 지우기

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 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