필터 지우기
필터 지우기

How do I write a sparse matrix in MATLAB

조회 수: 3 (최근 30일)
Shlesha Van
Shlesha Van 2020년 12월 15일
댓글: Jan 2020년 12월 16일
  댓글 수: 2
Shlesha Van
Shlesha Van 2020년 12월 15일
That gives solutions on how to convert a full matrix into sparse. My case is opposite. I want to convert a sparse into full

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

답변 (2개)

Daniel Pollard
Daniel Pollard 2020년 12월 15일
편집: Daniel Pollard 2020년 12월 15일
https://uk.mathworks.com/help/matlab/ref/full.html
  댓글 수: 4
Shlesha Van
Shlesha Van 2020년 12월 15일
Jan
Jan 2020년 12월 16일
The first two inputs of sparse() are the size of the matrix. As the error message tells you, [2,-1,0] cannot be a valid size. See the documentation of sparse :
doc sparse

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


Jan
Jan 2020년 12월 15일
You want to convert a sparse matrix into a full one? Then use the command: full().

카테고리

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