Azzera filtri
Azzera filtri

Plot selected data of the time-series

6 visualizzazioni (ultimi 30 giorni)
NS
NS il 6 Mar 2018
Modificato: NS il 6 Mar 2018
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

Risposta accettata

KSSV
KSSV il 6 Mar 2018
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 Commento
NS
NS il 6 Mar 2018
Modificato: NS il 6 Mar 2018
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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Time Series in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by