Define a Sparse Matrix without sparse function.

Hello I wonder if it is possible to define a sparse matrix without using the sparse function, is that I simply put the values in the position I want.
Thanks.

댓글 수: 1

Jan
Jan 2012년 7월 10일
What is the purpose of avoiding the sparse() function?

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

 채택된 답변

James Tursa
James Tursa 2012년 7월 9일
편집: James Tursa 2012년 7월 9일

2 개 추천

The sparse command can use multiple input formats:
E.g.,
"S = sparse(i,j,s) uses m = max(i) and n = max(j) ... Uses vectors i, j, and s to generate an m-by-n sparse matrix such that S(i(k),j(k)) = s(k)"

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Sparse Matrices에 대해 자세히 알아보기

질문:

2012년 7월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by