how to write sparse matrix

1 visualizzazione (ultimi 30 giorni)
imola
imola il 4 Giu 2015
Commentato: imola il 8 Giu 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

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by