delete empty cells from cell array

6 visualizaciones (últimos 30 días)
Elysi Cochin
Elysi Cochin el 6 de Mayo de 2019
Respondida: madhan ravi el 6 de Mayo de 2019
Untitled.png
how to delete the empty cells and get back 4x4 matrix
i tried
out = ca(~cellfun('isempty', ca));
but i'm getting output as vector. I need it as matrix format

Respuesta aceptada

madhan ravi
madhan ravi el 6 de Mayo de 2019
reshape(out,4,[])

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by