Python saved .mat file vs. Matlab saved.mat file

조회 수: 11 (최근 30일)
YANAN ZHU
YANAN ZHU 2018년 12월 20일
답변: Walter Roberson 2018년 12월 20일
I used io.savemat to save dictionary in Python into a .mat file that can be processed in Matlab. The file size is 915 MB. Then I imported the .mat file into matlab and save all variables again in Matlab as another .mat file.Suprisingly, the file size came down to 234 MB, which is much less compared with 915 MB. I thought I lost the precision when did the save in Matlab but I found out no precision was lost after doing subtraction of variables from the two versions of .mat files. I am very curious. Could someone help to explain why?Thanks in advance!

답변 (1개)

Walter Roberson
Walter Roberson 2018년 12월 20일
MATLAB has multiple ways of saving files. In some of them, lossless data compression might happen.

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by