필터 지우기
필터 지우기

Remove some zeros from a cell

조회 수: 2 (최근 30일)
Louise
Louise 2021년 1월 27일
답변: Mathieu NOE 2021년 1월 27일
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

채택된 답변

Mathieu NOE
Mathieu NOE 2021년 1월 27일
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개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by