accumarray error: Index into matrix must be positive
Ältere Kommentare anzeigen
G=[0 1 ; 0 2 ; 1 2];
adj=accumarray(G,1,[],[],0,true);
error: Index into matrix must be positive.
Akzeptierte Antwort
Weitere Antworten (2)
Muhammad Usman Saleem
am 4 Apr. 2016
0 Stimmen
Chad Greene
am 4 Apr. 2016
0 Stimmen
The zeros in G are not positive.
Kategorien
Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!