Sparse Matrix in Altair Compose
rodolfobibiano
New Altair Community Member
Answers
-
Hi Rodolfo,
You can use the function sparse.
For example if you have a full matrix you can convert it in this way:
sparse(eye(6))
Or you can create a sparse matrix specifying the row & col index and the related value. For example:
m = [1 4 10];
n = [ 2 6 8];
val = [1 3 8];
Matrix = sparse(m,n,val)
Hope it helps,
Lorenzo
0 -
-
Hi Rodolfo,
you should use Compose 2019.3!
Lorenzo
0