I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have 135987 * 69 table. I want to convert all negative values to NaN. Any Suggestions?
0 commentaires
Réponses (1)
Guillaume
le 9 Juil 2018
tablecontent = yourtable{:, :};
tablecontent(tablecontent < 0) = NaN;
yourtable{:, :} = tablecontent;
This assumes that every variable in the table is numeric and scalar.
0 commentaires
Voir également
Catégories
En savoir plus sur Tables dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!