Remove some zeros from a cell
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Louise
le 27 Jan 2021
Réponse apportée : Mathieu NOE
le 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 commentaires
Réponse acceptée
Mathieu NOE
le 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!