delete empty cells from cell array

5 visualizzazioni (ultimi 30 giorni)
Elysi Cochin
Elysi Cochin il 6 Mag 2019
Risposto: madhan ravi il 6 Mag 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

Risposta accettata

madhan ravi
madhan ravi il 6 Mag 2019
reshape(out,4,[])

Più risposte (0)

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by