I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?
0 Commenti
Risposte (1)
Guillaume
il 9 Lug 2018
tablecontent = yourtable{:, :};
tablecontent(tablecontent < 0) = NaN;
yourtable{:, :} = tablecontent;
This assumes that every variable in the table is numeric and scalar.
0 Commenti
Vedere anche
Categorie
Scopri di più su Tables in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!