Error using fwrite : Cannot write value: sparse arrays are unsupported.
4 views (last 30 days)
Show older comments
Commented: Nguyen Van Hieu on 7 May 2021
Is there any way to save a sparse matrix into a binary file?
I cannot convert from the sparse matrix to dense matrix because of the limitation in memory. I have to use a large sparse matrix sparse(1e5,1e5).
Thank you in advanced!
Bruno Luong on 7 May 2021
[i,j,v] = find(S);
then save i,j,v with fwrite
More Answers (0)
Find more on Sparse Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!