delete empty cells from cell array

2 Ansichten (letzte 30 Tage)
Elysi Cochin
Elysi Cochin am 6 Mai 2019
Beantwortet: madhan ravi am 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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by