Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



find zeros and replace with NaN
Posted:
Apr 4, 2011 12:27 PM


I have this matrix and I want to find all the zeros and change them to NaNs. Example: A=[1 0 4;3 2 0] Should turn into A=[1 NaN 4;3 2 NaN]
can you tell me how
Thank you for reply



