accumarray error: Index into matrix must be positive
古いコメントを表示
G=[0 1 ; 0 2 ; 1 2];
adj=accumarray(G,1,[],[],0,true);
error: Index into matrix must be positive.
採用された回答
その他の回答 (2 件)
Muhammad Usman Saleem
2016 年 4 月 4 日
0 投票
Chad Greene
2016 年 4 月 4 日
0 投票
The zeros in G are not positive.
カテゴリ
ヘルプ センター および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!