I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?
9 ビュー (過去 30 日間)
古いコメントを表示
I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?
0 件のコメント
回答 (1 件)
Guillaume
2018 年 7 月 9 日
tablecontent = yourtable{:, :};
tablecontent(tablecontent < 0) = NaN;
yourtable{:, :} = tablecontent;
This assumes that every variable in the table is numeric and scalar.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!