accumarray error: Index into matrix must be positive
Mostrar comentarios más antiguos
G=[0 1 ; 0 2 ; 1 2];
adj=accumarray(G,1,[],[],0,true);
error: Index into matrix must be positive.
Respuesta aceptada
Más respuestas (2)
Muhammad Usman Saleem
el 4 de Abr. de 2016
0 votos
Chad Greene
el 4 de Abr. de 2016
0 votos
The zeros in G are not positive.
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!