looking for a command

2 views (last 30 days)
Sebastiano delre
Sebastiano delre on 6 Oct 2013
Answered: Andrei Bobrov on 6 Oct 2013
How can I get from A=[21 3 NaN NaN] to A=[21 3 0 0] without using a for cycle?

Accepted Answer

Image Analyst
Image Analyst on 6 Oct 2013
A(isnan(A)) = 0;

More Answers (1)

Andrei Bobrov
Andrei Bobrov on 6 Oct 2013
A(A~=A) = 0

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!