MATLAB: Can I convert CRS and CSC sparse matrices to MATLAB sparse matrices

convertloadMATLABmatrixsparse

I have data stored in the CRS and CSC formats in MATLAB arrays, and I want to use them as "sparse" matrices in MATLAB with the sparse matrix operations.
How can I convert from CRS and CSC to MATLAB sparse matrices? I understand that internally MATLAB stores sparse matrices in the CSC format, as it says here:

Best Answer

Unfortunately at this time, the only way to create MATLAB sparse matrices is with 1-indexed, [row, column, vector] triplets, which are not how CRS and CSC are formatted.
Once you have the data in this accepted format, you can use the (row, column, value) vectors as input to the "spconvert" and "sparse" MATLAB functions.
Related Question