Accessing order pair from sparse matrix
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Marcus Rosales
el 27 de Mzo. de 2021
Comentada: Marcus Rosales
el 27 de Mzo. de 2021
Hello, my question has to do with accessing the indicies of a sparse matrix. Say we define $S=sparse(M)$, then if we put S in the command lines we'd see something like this (for example):
(1,3) 5
(2,4) 1
(2,5) 3.1415
etc...
Is there a way to just access the order pairs directly? I have two matricies with corresponding elements and want to perfome some tests around the nonzero elements of a figure I am working on. This alone would greatly simplified my code but I can not find any documentation on it...
0 comentarios
Respuesta aceptada
Ver también
Categorías
Más información sobre Sparse Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!