Index Non-Empty Cells in Cell Array
이전 댓글 표시
Hi,
I have the following cell array
TEST = [1] [] [] [] []
I want to get the index position of the non-empty cell. I know I can do this using a loop, but is there any single command (like "find") that will do this?
Thank you!
JF
채택된 답변
추가 답변 (1개)
Attila
2017년 5월 16일
1 개 추천
Dear Mubarak,
This will work : find(~cellfun(@isempty,a'));
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!