create sparse matrix from diagonal arrays
古いコメントを表示
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.
採用された回答
その他の回答 (2 件)
Andrew Newell
2014 年 4 月 10 日
0 投票
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 件のコメント
Jack Silver
2014 年 4 月 11 日
Andrew Newell
2014 年 4 月 11 日
I'm still having trouble understanding what you mean. Could you attach a file with some data?
カテゴリ
ヘルプ センター および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!