필터 지우기
필터 지우기

how to i delete the rows in a cell

조회 수: 1 (최근 30일)
me
me 2015년 11월 7일
답변: Stephen23 2015년 11월 7일
I have a really large 7231x11 cell with some empty rows. Is it possible for me to delete those empty rows.

답변 (1개)

Stephen23
Stephen23 2015년 11월 7일
>> C = {[1,2];[];[3,4]}
C =
[1x2 double]
[]
[1x2 double]
>> C(cellfun('isempty',C),:) = []
C =
[1x2 double]
[1x2 double]

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by