how to find and replace corresponding matri
조회 수: 1 (최근 30일)
이전 댓글 표시
a1{:}
ans =
73.3333 50.0000
66.6667 50.0000
ans =
Empty matrix: 0-by-2
ans =
Empty matrix: 0-by-2
ans =
Empty matrix: 0-by-2
ans =
Empty matrix: 0-by-2
ans =
Empty matrix: 0-by-2
i need to find index for non zero cell array, and convert in into mat.
댓글 수: 0
답변 (3개)
Azzi Abdelmalek
2016년 5월 19일
편집: Azzi Abdelmalek
2016년 5월 19일
idx=celfun(@isempty,a1)
a1(idx)=[]
out=cell2mat(a1)
댓글 수: 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!