Error using fwrite : Cannot write value: sparse arrays are unsupported.

1 Ansicht (letzte 30 Tage)
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!

Akzeptierte Antwort

Bruno Luong
Bruno Luong am 7 Mai 2021
[i,j,v] = find(S);
then save i,j,v with fwrite

Weitere Antworten (0)

Kategorien

Mehr zu Ladder Diagram Integration finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by