how to i delete the rows in a cell
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have a really large 7231x11 cell with some empty rows. Is it possible for me to delete those empty rows.
0 comentarios
Respuestas (1)
Stephen23
el 7 de Nov. de 2015
>> C = {[1,2];[];[3,4]}
C =
[1x2 double]
[]
[1x2 double]
>> C(cellfun('isempty',C),:) = []
C =
[1x2 double]
[1x2 double]
0 comentarios
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!