Remove some zeros from a cell

1 visualización (últimos 30 días)
Louise
Louise el 27 de En. de 2021
Respondida: Mathieu NOE el 27 de En. de 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

Respuesta aceptada

Mathieu NOE
Mathieu NOE el 27 de En. de 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

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by