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

6 ビュー (過去 30 日間)
Nguyen Van Hieu
Nguyen Van Hieu 2021 年 5 月 7 日
コメント済み: Nguyen Van Hieu 2021 年 5 月 7 日
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 Center および File ExchangeSparse Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by