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 Kommentar

Jan
Jan am 10 Jul. 2012
What is the purpose of avoiding the sparse() function?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

James Tursa
James Tursa am 9 Jul. 2012
Bearbeitet: James Tursa am 9 Jul. 2012

2 Stimmen

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)"

Weitere Antworten (0)

Kategorien

Mehr zu Sparse Matrices finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by