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일

2 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Types에 대해 자세히 알아보기

태그

질문:

2016년 1월 11일

편집:

2016년 1월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by