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

1 visualización (últimos 30 días)
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!

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Ladder Diagram Integration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by