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 についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by