How to erase rows with blank entries with one exception?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have this code that erases all the rows if there is a blank entry [ ] in any of the columns/rows of the cell array:
A=A(all(cellfun(@numel,A),2),:);
Now I have a cell array to which I want to apply this code, but I don't want to erase the first row, and unfortunately in the first row one finds blank entries. Does someone know how to do it?
Thanks
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2014년 7월 27일
편집: Azzi Abdelmalek
2014년 7월 27일
A=[A(1,:) ; A(all(cellfun(@numel,A),2),:)]
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!