Matrix array in a strange format

조회 수: 2 (최근 30일)
Joe
Joe 2023년 8월 10일
댓글: John D'Errico 2023년 8월 10일
Hello, how do I make this show in the usual row and columns, cell format?

채택된 답변

Adam
Adam 2023년 8월 10일
It's a sparse array so that is standard.
You can use:
full( kio )
to convert to a full (standard) matrix if you wish, though be aware that it will take more memory. Obviously for a 78x78 matrix this is not an issue though.
  댓글 수: 1
John D'Errico
John D'Errico 2023년 8월 10일
Adam is completely correct of course. I would only add the additional point that a sparse 78x78 matrix is REALLY small these days. Any computations will not be that much faster for such a small matrix. Sparse matrix computations might even be slower. It is worth testing for your matrix.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Michael
Michael 2023년 8월 10일
Your matrix "val" is a sparse matrix. You can convert it to a full storage matrix with the function "full".
A = full(val)

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by