필터 지우기
필터 지우기

How to delete [ ] from an array

조회 수: 1 (최근 30일)
cat cat
cat cat 2016년 1월 11일
편집: Stephen23 2016년 1월 11일
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개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by