필터 지우기
필터 지우기

manipulation of a cell array-

조회 수: 3 (최근 30일)
alex
alex 2012년 10월 15일
I have a cell array where some cells are empty, some are with numbers and some are with strings and chars.
I want to find out which ones are empty- is there a better way then a double loop with
isempty(cell_array{i,j}) ?

채택된 답변

Matt Fig
Matt Fig 2012년 10월 15일
편집: Matt Fig 2012년 10월 15일
Cell_array = {1,[],magic(2);'stirng',[],[]}
cellfun('isempty',Cell_array)

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by