Tuesday, 10 September 2013

How can I skip the zeros in a matrix?

How can I skip the zeros in a matrix?

I have a matrix with columns filled with zeros and I want to copy the
matrix into a new matrix but to skip the columns with the zeros.
Is there any command that can help me? I tried to do it with the sparse
command but I didn't really understand what happens there. It skips the
zeros but when you want to know how many columns you have in the new
matrix it still shows the initial size.

No comments:

Post a Comment