Matrix array in a strange format
2 ビュー (過去 30 日間)
古いコメントを表示

Hello, how do I make this show in the usual row and columns, cell format?
0 件のコメント
採用された回答
Adam
2023 年 8 月 10 日
It's a sparse array so that is standard.
You can use:
full( kio )
to convert to a full (standard) matrix if you wish, though be aware that it will take more memory. Obviously for a 78x78 matrix this is not an issue though.
1 件のコメント
John D'Errico
2023 年 8 月 10 日
Adam is completely correct of course. I would only add the additional point that a sparse 78x78 matrix is REALLY small these days. Any computations will not be that much faster for such a small matrix. Sparse matrix computations might even be slower. It is worth testing for your matrix.
その他の回答 (1 件)
Michael
2023 年 8 月 10 日
Your matrix "val" is a sparse matrix. You can convert it to a full storage matrix with the function "full".
A = full(val)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!