Find NaN in a cell array and only delete the NaNs
Ältere Kommentare anzeigen
How can I delete NaN s from a cell array (only the NaN elements not the whole column or row)?
Akzeptierte Antwort
Weitere Antworten (2)
madhan ravi
am 11 Apr. 2019
C(cellfun(@(x)any(isnan(x)),C))=[]
2 Kommentare
madhan ravi
am 11 Apr. 2019
Matrices cannot have holes.
MatlabUser17
am 11 Apr. 2019
Bearbeitet: MatlabUser17
am 11 Apr. 2019
Pruthvi G
am 12 Mär. 2020
Data(cellfun(@(cell) any(isnan(cell(:))),Data))={''};
Kategorien
Mehr zu NaNs finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!