필터 지우기
필터 지우기

how to write sparse matrix

조회 수: 1 (최근 30일)
imola
imola 2015년 6월 4일
댓글: imola 2015년 6월 8일
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일
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
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개)

카테고리

Help CenterFile Exchange에서 Sparse Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by