how to write sparse matrix

2 Ansichten (letzte 30 Tage)
imola
imola am 4 Jun. 2015
Kommentiert: imola am 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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 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 Kommentare
Walter Roberson
Walter Roberson am 6 Jun. 2015
char(A+'0')
imola
imola am 8 Jun. 2015
Dear Walter,
Thanks that's great, many thanks.
regards

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by