Azzera filtri
Azzera filtri

how to i delete the rows in a cell

1 visualizzazione (ultimi 30 giorni)
me
me il 7 Nov 2015
Risposto: Stephen23 il 7 Nov 2015
I have a really large 7231x11 cell with some empty rows. Is it possible for me to delete those empty rows.

Risposte (1)

Stephen23
Stephen23 il 7 Nov 2015
>> C = {[1,2];[];[3,4]}
C =
[1x2 double]
[]
[1x2 double]
>> C(cellfun('isempty',C),:) = []
C =
[1x2 double]
[1x2 double]

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