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

9 ビュー (過去 30 日間)
Devansh Patel
Devansh Patel 2018 年 7 月 9 日
回答済み: Guillaume 2018 年 7 月 9 日
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 Center および File ExchangeTables についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by