Borrar filtros
Borrar filtros

Plot selected data of the time-series

6 visualizaciones (últimos 30 días)
NS
NS el 6 de Mzo. de 2018
Editada: NS el 6 de Mzo. de 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

Respuesta aceptada

KSSV
KSSV el 6 de Mzo. de 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 comentario
NS
NS el 6 de Mzo. de 2018
Editada: NS el 6 de Mzo. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Time Series en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by