Is it possible to convert a matrix in the sparse form (using spy(X)) in the block format(ex:X=[1 0 0 1; 0 0 0 1;1 0 0 0;0 0 0 0]) for matrix multiplication???

# MATLAB: Sparse matrix conversion??

sparse matrix

###### Related Question

- Plotting sparsity pattern of a matrix
- How to show a sparse matrix
- How to write sparse matrix
- Define a Sparse Matrix without sparse function.
- I have an all zero matrix ‘a’ of size m x n. In a new 2 column matrix ‘b’ I have the indices where I should replace the zero in ‘a’ with 1. Is there a way to do this without a ‘for’ loop? The m,n > 500..

## Best Answer