accumarray error: Index into matrix must be positive
Mostra commenti meno recenti
G=[0 1 ; 0 2 ; 1 2];
adj=accumarray(G,1,[],[],0,true);
error: Index into matrix must be positive.
Risposta accettata
Più risposte (2)
Muhammad Usman Saleem
il 4 Apr 2016
0 voti
Chad Greene
il 4 Apr 2016
0 voti
The zeros in G are not positive.
Categorie
Scopri di più su Matrices and Arrays in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!