I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?
8 views (last 30 days)
Show older comments
I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?
0 Comments
Answers (1)
Guillaume
on 9 Jul 2018
tablecontent = yourtable{:, :};
tablecontent(tablecontent < 0) = NaN;
yourtable{:, :} = tablecontent;
This assumes that every variable in the table is numeric and scalar.
0 Comments
See Also
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!