Azzera filtri
Azzera filtri

replace 1 in place of NaN

2 visualizzazioni (ultimi 30 giorni)
Jay Hanuman
Jay Hanuman il 11 Nov 2016
Risposto: KSSV il 11 Nov 2016
I have matrix with some elements NaN. I want to replace them with 1. how to do it

Risposte (1)

KSSV
KSSV il 11 Nov 2016
Let K be your array which has nan.
K(isnan(K))=1;

Community Treasure Hunt

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

Start Hunting!

Translated by