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

3 visualizaciones (últimos 30 días)
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 ?

Respuesta aceptada

James Tursa
James Tursa el 10 de Mayo de 2016
z(cellfun(@isempty,z)) = [];

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by