hi, I want to find he index value of non-zero vectors in a cell array. How do I do that ? TIA
조회 수: 2 (최근 30일)
이전 댓글 표시
for example E= 4×4 cell array
[0] [1×3 double] [1×3 double] []
[0] [] [1×3 double] [1×3 double]
[0] [] [] [1×3 double]
[0] [] [] []
Then how do I find which cells if column two contains non-zero vectors?
댓글 수: 0
답변 (1개)
KSSV
2017년 10월 23일
x = cell(3) ;
x{1,1} = rand(2) ;
x{2,2} = rand(3) ;
find(~cellfun(@isempty,x))
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!