How to delete rows from a TimeSeries variable
20 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Happy Bear
el 14 de Mzo. de 2020
Comentada: dpb
el 16 de Mzo. de 2020
Hello everyone,
I have a 1x1 double TimeSeries variable.
The size of both columns are 812997x1.
I want to exclude every rows indexed after and including the row number 664410.
How can I do it?
I've tried doing it like in a normal matrix but it obviously doesn't work:
HRTimeSeries.time(664410:end,:) = [ ];
0 comentarios
Respuesta aceptada
dpb
el 14 de Mzo. de 2020
Editada: dpb
el 14 de Mzo. de 2020
delsample
timeseries are different...only can address by the time values or events, not linear indexing. I've never found them helpful; use timetable or regular table instead for virtually any purpose unless the event feature is really suited for your specific purposes.
2 comentarios
dpb
el 16 de Mzo. de 2020
That's pretty easy to write for the specific case, "not so much" if a row stuck down in the middle somewhere...
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!