how to make an array without empty cell

조회 수: 1 (최근 30일)
uzzi
uzzi 2022년 11월 7일
댓글: uzzi 2022년 11월 7일
Hello,
I have an array of this and there are some empty cells. I am trying to eliminate those with this command but it is working. I want my cell array with zero empty cells. Can someone help me?
t(all(emptyCells,:) = []
t(emptyCells) = [];

채택된 답변

Walter Roberson
Walter Roberson 2022년 11월 7일
t(~cellfun(@isempty, t))
  댓글 수: 1
uzzi
uzzi 2022년 11월 7일
Thank you very much. Your answer worked.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by