Azzera filtri
Azzera filtri

Remove some zeros from a cell

2 visualizzazioni (ultimi 30 giorni)
Louise
Louise il 27 Gen 2021
Risposto: Mathieu NOE il 27 Gen 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

Risposta accettata

Mathieu NOE
Mathieu NOE il 27 Gen 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

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by