accumarray error: Index into matrix must be positive
Afficher commentaires plus anciens
G=[0 1 ; 0 2 ; 1 2];
adj=accumarray(G,1,[],[],0,true);
error: Index into matrix must be positive.
Réponse acceptée
Plus de réponses (2)
Muhammad Usman Saleem
le 4 Avr 2016
0 votes
Chad Greene
le 4 Avr 2016
0 votes
The zeros in G are not positive.
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!