Question: I would like to create a sparse matrix in matlab, given the follwing arrays. Intitial Row Pointers = [ 1 4 8 10 14 16
I would like to create a sparse matrix in matlab, given the follwing arrays.
Intitial Row Pointers = [ 1 4 8 10 14 16 19 ]
Column Indices = [ 1 5 4 2 7 6 4 3 7 4 3 7 6 5 1 6 2 5 7 2 3 6 ]
Matrix Elements = [2 -1 -1 -1 4 -2 -2 8 -4 -4 -2 -4 6 -2 4 -2 -1 -3 8 -1 -3 16]
So this matrix "A" would look like

4 8 2 236 2 4 3 8 2 1 2 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
