Convert sparse matrix to full matrix
A = full(S)
A = full(S) converts a
sparse matrix S to full storage organization, such
that issparse(A) returns logical 0 (false).
If S is a full matrix, then A is
identical to S.
Here is an example of a sparse matrix with a density of about
two-thirds. sparse(S) and full(S) require
about the same number of bytes of storage.
S = sparse(double(rand(200,200) < 2/3)); A = full(S); whos Name Size Bytes Class Attributes A 200x200 320000 double S 200x200 429624 double sparse