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

3 次查看(过去 30 天)
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 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by