Delete rows from a timetable with an specific criteria

3 visualizaciones (últimos 30 días)
Angelavtc
Angelavtc el 14 de En. de 2020
Respondida: Steven Lord el 14 de En. de 2020
Hi to all!
How can I remove from a timetable which contains 3 columns/variables (Price, Group_Count, Mean_Volume) the observations where, for example, Group_Count<335?
I am new using matlab and any help would be really appreciated!

Respuesta aceptada

Steven Lord
Steven Lord el 14 de En. de 2020
See the "Select Rows with Logical Indexing" section on this documentation page for an example you can use as a model. That example uses indexing to select patients whose Age is less than 40, but you could use the same approach with the normal deletion syntax to delete rows corresponding to patients whose Age is greater than or equal to 40. The "Search for Rows to Delete" section on this documentation page has an example of the deletion approach. While that second documentation page is in the section of the documentation dealing with table arrays, table arrays and timetable arrays both support this type of indexing.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays 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