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

6 次查看(过去 30 天)
I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by