Is the amount of hard drive space used when a variable is saved to a .mat file equivalent to the amount of RAM the variable requires when loaded into the workspace?

조회 수: 2 (최근 30일)
I am working on large, multidimensional images and recently got an error in R2017a for my variable being too large (~33GB when I only have 32GB of RAM). I made a slight adjustment to decrease the size of my array and everything worked as expected.
However, once I saved the variable as a .mat file I found that the file is quite a bit smaller, ~193MB.
Why is that the case, and will there be issues when I attempt to load the file into my workspace?

답변 (1개)

Walter Roberson
Walter Roberson 2017년 7월 27일
.mat -v7.3 files can use compression.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by