I have a big structure .mat file called a.mat and it has a structure named stat. stat has filed called day. i.e., stat.day. There are 6 days and I only want to load one day, that is, stat.day(1). Can someone please tell me how I can do this without loading the whole structure in the memory. Thanks

답변 (1개)

KSSV
KSSV 2016년 9월 6일

0 개 추천

If you have saved the mat file using the version 7.3 then it is possible to load parts of it. For any other version lower then this, I don't think it is possible to load part of a file.
More on:

댓글 수: 3

MINA
MINA 2016년 9월 6일
I did use version v.3 when I saved the file. But I still don't know how I can get a subfield of the structure. Meaning, I only want stat.day(1) and not other stat.day(2:end).
KSSV
KSSV 2016년 9월 6일
What is the file size?
If you are making the file, try to save it in ver 7.3.
MINA
MINA 2016년 9월 6일
About 8 Gb. And I saved it in ver 7.3.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Standard File Formats에 대해 자세히 알아보기

질문:

2016년 9월 6일

댓글:

2016년 9월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by