Filter löschen
Filter löschen

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

6 Ansichten (letzte 30 Tage)
I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?

Antworten (1)

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

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by