Remove some zeros from a cell
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Louise
am 27 Jan. 2021
Beantwortet: Mathieu NOE
am 27 Jan. 2021
Hi,
My aim is to remove all 0 for each columns of this attached cell.
I have actually no idea on how to do that...
Thanks in advance for you help !
Louise
0 Kommentare
Akzeptierte Antwort
Mathieu NOE
am 27 Jan. 2021
hello
simple code below , replace zeros with NaN (example)
load('Cell.mat')
dd = cell2mat(Data_All_Repos);
dd(dd<eps) = NaN ; % more obust than dd(dd==0) = NaN
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB 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!