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

Antworten (1)

KSSV
KSSV am 6 Sep. 2016

0 Stimmen

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 Kommentare

MINA
MINA am 6 Sep. 2016
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 am 6 Sep. 2016
What is the file size?
If you are making the file, try to save it in ver 7.3.
MINA
MINA am 6 Sep. 2016
About 8 Gb. And I saved it in ver 7.3.

Melden Sie sich an, um zu kommentieren.

Kategorien

Gefragt:

am 6 Sep. 2016

Kommentiert:

am 6 Sep. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by