I would like to replace NaN value (in 1 row and 306 columns ) instead of empty matrices inside a cell array of 6804 elements
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I had attached a screen shot of my cell array. I need to replace 1*306 double NaN values instead of empty [] cells. Any help would be appreciated. Thank you so much in advance.
I tried the following code:
c= 6804*1 cell
empties = cellfun('isempty',c);
c(empties) = {NaN};
But it just replace the empty cell with single NaN value
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu NaNs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!