Dear All,
How to write sparse matrix as a small matrix in one page, I have 100x100 matrix and need to write the output in one page so i can read the matrix easily.
regards,
Imola

 採用された回答

Walter Roberson
Walter Roberson 2015 年 6 月 4 日

1 投票

disp() the matrix, or find() on the matrix; see http://www.mathworks.com/help/matlab/math/accessing-sparse-matrices.html
or if you are looking for a graphic output, perhaps spy() the matrix.

4 件のコメント

imola
imola 2015 年 6 月 6 日
Dear Walter,
Thanks for your answer, I will try it and see the result.
Regards, Imola
imola
imola 2015 年 6 月 6 日
Dear Walter,
i tried both spy() and disp() i didn't get what i want. see the next matrix, suppose A is my output and it is as follow
A=[0 1 0 0;1 0 0 0;1 1 0 0];
I want to have A like this
A=[0100;1000;1100];
so A for 100x100 will be in one page so I can see the whole matrix.
regards, and thanks for your help.
Walter Roberson
Walter Roberson 2015 年 6 月 6 日
char(A+'0')
imola
imola 2015 年 6 月 8 日
Dear Walter,
Thanks that's great, many thanks.
regards

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSparse Matrices についてさらに検索

タグ

質問済み:

2015 年 6 月 4 日

コメント済み:

2015 年 6 月 8 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by