How to delete [ ] from an array

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

 采纳的回答

Stephen23
Stephen23 2016-1-11
编辑:Stephen23 2016-1-11
You can using indexing to remove those cells from the cell array:
A(cellfun('isempty',A)) = []

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by