finding NON in matrix
Show older comments
Hi all In the matrix A which is 1*N matrix, I want to recognize if there is any element equal to NON in it,I replace it by zero.How can I do that?
Accepted Answer
More Answers (1)
Sean de Wolski
on 24 May 2011
A(isnan(A)) = 0;
1 Comment
Walter Roberson
on 24 May 2011
You're fast today, Sean!
Categories
Find more on Cell Arrays 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!