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';};

 Akzeptierte Antwort

Stephen23
Stephen23 am 11 Jan. 2016
Bearbeitet: Stephen23 am 11 Jan. 2016

2 Stimmen

You can using indexing to remove those cells from the cell array:
A(cellfun('isempty',A)) = []

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 11 Jan. 2016

Bearbeitet:

am 11 Jan. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by