saving a large matrix in .mat format using scipy.savemat

22 ビュー (過去 30 日間)
geo seis
geo seis 2020 年 12 月 31 日
回答済み: 2024 年 3 月 27 日
Hii experts, i want to save a large matrix(10gb) in using scipy.io.savemat function in python but it is unable to save the matrix instead it gives error : Matrix too large to save with Matlab 5 format, however i searched over internet and tried to overcome the problem by using do_compression=True. still it gives same error.can anybody suggest me a better solution to save a large matrix in .mat format using python so that i can take it to matlab platform.

回答 (2 件)

Combinatorialist
Combinatorialist 2021 年 2 月 16 日
I had the same problem and was able just break the matrix into multiple pieces and then save them to separate files. My matrix saved as 7 GB and I broke it into a 4 GB file and a 3 GB file

硕
2024 年 3 月 27 日
This question can be solved by using hdf5storage package in python.

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by