how to write sparse matrix

1 view (last 30 days)
imola
imola on 4 Jun 2015
Commented: imola on 8 Jun 2015
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

Accepted Answer

Walter Roberson
Walter Roberson on 4 Jun 2015
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 Comments
imola
imola on 8 Jun 2015
Dear Walter,
Thanks that's great, many thanks.
regards

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!