Sparse matrix conversion???
6 次查看(过去 30 天)
显示 更早的评论
Is it possible to convert a matrix in the sparse form (using spy(X)) in the block format(ex:X=[1 0 0 1; 0 0 0 1;1 0 0 0;0 0 0 0]) for matrix multiplication???
0 个评论
采纳的回答
the cyclist
2011-10-8
I am not entirely sure what you are asking for. The sparse() command will convert a matrix to sparse form. [The spy() function is only for visualization.] Whether or not the matrix has a block format is not very relevant, because in sparse form, MATLAB stores the locations and values of the non-zero elements, regardless of where they are. (Or maybe I am misunderstanding something in your question.)
0 个评论
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!