Replacing elements in a table
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Wesso
le 16 Mar 2019
Réponse apportée : madhan ravi
le 16 Mar 2019
I have Table A that constitutes of arrays, Some of the columns were computed using algebraic equations. This yielded certain numbers to be Inf and -Inf
How can I remove these from A and replace them with NaNs?
0 commentaires
Réponse acceptée
madhan ravi
le 16 Mar 2019
A=table2array(A);
A(isinf(A)|-isinf(A))=nan;
A=array2table(A)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!