Borrar filtros
Borrar filtros

How to delete [ ] from an array

1 visualización (últimos 30 días)
cat cat
cat cat el 11 de En. de 2016
Editada: Stephen23 el 11 de En. de 2016
Hi! If I have an array like A, how can I delete [] from it?
A={'4';'2';'(';'4';'(';'3';'3';'(';'(';'4';'4';'3';'(';'2';'(';'(';'2';'3';'3';'2';'4';'2';[];[];[];[];[];[];[];[];[];[];'3';'4';'2';'2';'3';'3';};

Respuesta aceptada

Stephen23
Stephen23 el 11 de En. de 2016
Editada: Stephen23 el 11 de En. de 2016
You can using indexing to remove those cells from the cell array:
A(cellfun('isempty',A)) = []

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by