A lot of big sparse matrices

In that case, you lose the sparse data structure when you multiply by Sm, unless you use Sm = sparse(rand(m,m))… And pom is also not a sparse matrix.

3 Likes