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

조회 수: 2 (최근 30일)
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
Bruno Luong 2021년 5월 7일
[i,j,v] = find(S);
then save i,j,v with fwrite

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ladder Diagram Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by