Section: Sparse Matrix Support
y = full(x)
The type of x
is preserved. Be careful with the function.
As a general rule of thumb, if you can work with the full
representation of a function, you probably do not need the
sparse representation.
--> a = [1,0,4,2,0;0,0,0,0,0;0,1,0,0,2] a = 1 0 4 2 0 0 0 0 0 0 0 1 0 0 2 --> A = sparse(a) A = Matrix is sparse with 5 nonzeros --> full(A) ans = 1 0 4 2 0 0 0 0 0 0 0 1 0 0 2 --> quit