How to convert .xlsx file to .mat larger than 200 mb
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi, I have a file with 65536 rows and almost 1800 columns that makes my excel file to approx 210 MBs and i want to convert it in .mat file but when i used save command it gave an error of exceeding memory resources,please help me to encounter this problem Thankx
댓글 수: 0
답변 (1개)
Raghava S N
2024년 9월 26일
Hello,
The parameter “version” in the MATLAB function “save” can be used to specify the MAT-file version. This effects the maximum size of the variable that can be saved in the MAT file. For more information, refer to this link - https://www.mathworks.com/help/matlab/ref/save.html#btox10b-1-version:~:text=version%20%E2%80%94%20MAT%2Dfile%20version.
I also found this MATLAB Answers post which discusses storing data bigger than 2GB in MAT files - https://www.mathworks.com/matlabcentral/answers/381308-bigger-than-2gb-data-storage. The solution is to save the excel file using the following command:
save('myFile.mat', 'Variablename', '-v7.3')
The “version” parameter here is set to ‘-v7.3’ which enables storage of data that is larger than 2 GB.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!