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!