Borrar filtros
Borrar filtros

I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?

6 visualizaciones (últimos 30 días)
I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?

Respuestas (1)

Guillaume
Guillaume el 9 de Jul. de 2018
tablecontent = yourtable{:, :};
tablecontent(tablecontent < 0) = NaN;
yourtable{:, :} = tablecontent;
This assumes that every variable in the table is numeric and scalar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by