Borrar filtros
Borrar filtros

extract data in specific interval

4 visualizaciones (últimos 30 días)
Rachele Franceschini
Rachele Franceschini el 21 de Sept. de 2021
Respondida: KSSV el 21 de Sept. de 2021
I have one table with two columns: date (01-01-2010 to 31-08-2021), value
I would like to get only data during 2020. There is a function or similar to get some only data in specific period?

Respuesta aceptada

KSSV
KSSV el 21 de Sept. de 2021
Let thedates be your datetime array.
[y,m,d,h,m,s] = datevec(thedates) ;
iwant = thedates(y==2020)
You can also use inequalities like ==, >, <, >=, <= on these dates.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by