looking for a command

1 visualizzazione (ultimi 30 giorni)
Sebastiano delre
Sebastiano delre il 6 Ott 2013
Risposto: Andrei Bobrov il 6 Ott 2013
How can I get from A=[21 3 NaN NaN] to A=[21 3 0 0] without using a for cycle?

Risposta accettata

Image Analyst
Image Analyst il 6 Ott 2013
A(isnan(A)) = 0;

Più risposte (1)

Andrei Bobrov
Andrei Bobrov il 6 Ott 2013
A(A~=A) = 0

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by