Effacer les filtres
Effacer les filtres

delete empty cells from cell array

6 vues (au cours des 30 derniers jours)
Elysi Cochin
Elysi Cochin le 6 Mai 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

Réponse acceptée

madhan ravi
madhan ravi le 6 Mai 2019
reshape(out,4,[])

Plus de réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by