Can I have array of sparse matrices?
Ältere Kommentare anzeigen
I have array of matrices. Every matrix has only one non-zero element in every row. So I want to save it as array of sparse matrices. How can I do it? sparse(A) where A is array of matrices returns error "Undefined function 'sparse' for input arguments of type 'double' and attributes 'full 3d real'."
Akzeptierte Antwort
Weitere Antworten (1)
James Tursa
am 10 Mai 2015
Bearbeitet: James Tursa
am 10 Mai 2015
0 Stimmen
Yes, but not directly with inbuilt MATLAB functionality. Instead, you can use this FEX submission by Matt J:
Kategorien
Mehr zu Sparse Matrices 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!