cell within a cell
이전 댓글 표시
Hello, I have a problem that is taking me some time. I have a 994*15 cell and within those cells there are empty arrays [] and there are arrays of 1*3. It is a bit random. I am trying to get rid of the the empty cells but keep the same cell columns because they are results that will need to be compared afterwards.
Don't hesitate to ask questions. I tried with a loop and the function find, but the results are not working with cells.
답변 (1개)
Azzi Abdelmalek
2013년 3월 17일
편집: Azzi Abdelmalek
2013년 3월 17일
A(cellfun(@isempty,A))=[] % A is your cell array
카테고리
도움말 센터 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!