if i have this cell matrix how can delete zero cell?

조회 수: 1 (최근 30일)
Firas Al-Kharabsheh
Firas Al-Kharabsheh 2016년 5월 10일
댓글: Firas Al-Kharabsheh 2016년 5월 10일
if i have
z= [10x10 double]
[10x10 double]
[10x10 double]
[10x10 double]
[10x10 double]
[10x10 double]
[10x10 double]
[10x10 double]
[10x10 double]
[]
[10x10 double]
how can i delete the [] cell from z ?

채택된 답변

James Tursa
James Tursa 2016년 5월 10일
z(cellfun(@isempty,z)) = [];

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by