create sparse matrix from diagonal arrays
Mostra commenti meno recenti
I have the 7 diagonal that come from a 3D finite volume discretization in separate arrays. These 7 arrays have 3D shape and correspond to each elements of the stencil for all points: top, bottom, east, west, north south and central point. I would like to create a sparse matrix object from these arrays, but I feel a little lost with the spdiag documentation. Help would be gratly apreaciated.
Risposta accettata
Più risposte (2)
Andrew Newell
il 10 Apr 2014
0 voti
MATLAB supports sparse matrices, but for 3D arrays you'll need to visit the File Exchange and get N-dimensional sparse arrays by Matt J.
2 Commenti
Jack Silver
il 11 Apr 2014
Andrew Newell
il 11 Apr 2014
I'm still having trouble understanding what you mean. Could you attach a file with some data?
Jack Silver
il 24 Apr 2014
0 voti
Categorie
Scopri di più su Resizing and Reshaping Matrices 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!