spconvert
Convert indexed data to a sparse matrix.
📝Syntax
S = spconvert(D)
📥Input Arguments
Parameter Description
D a full m-by-3 or m-by-4 double matrix.
📤Output Arguments
Parameter Description
S a sparse double or complex double matrix.
📄Description

spconvert builds a sparse matrix from rows [i j v]. With four columns, rows are interpreted as [i j real imag].

💡Examples
D = [1 1 10; 2 3 20; 3 2 30];
S = spconvert(D)
🔗See Also
sparseIJV
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub