how to make an array without empty cell

3 visualizaciones (últimos 30 días)
uzzi
uzzi el 7 de Nov. de 2022
Comentada: uzzi el 7 de Nov. de 2022
Hello,
I have an array of this and there are some empty cells. I am trying to eliminate those with this command but it is working. I want my cell array with zero empty cells. Can someone help me?
t(all(emptyCells,:) = []
t(emptyCells) = [];

Respuesta aceptada

Walter Roberson
Walter Roberson el 7 de Nov. de 2022
t(~cellfun(@isempty, t))

Más respuestas (0)

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by