|
|
Loading partial array from .mat file
Hi,
I have several thousands sets of 365x670 array data (.mat) which I must load in a loop, and it takes a lot of memory and it very slow - each time I load the data, I only need a very small fraction of it (1x670).
Is there any way to load only a PARTIAL array from a .mat file? Something along the lines of,
>> load('..\datafile1.mat', array(365,:)) ?
so that I dont have to load the entire thing?
Thanks
Mike
|
|
0
|
|
|
|
Reply
|
Michael
|
10/27/2010 4:42:05 PM |
|
Michael wrote:
> Hi,
>
> I have several thousands sets of 365x670 array data (.mat) which I must
> load in a loop, and it takes a lot of memory and it very slow - each
> time I load the data, I only need a very small fraction of it (1x670).
>
> Is there any way to load only a PARTIAL array from a .mat file?
> Something along the lines of,
>
>>> load('..\datafile1.mat', array(365,:)) ?
>
> so that I dont have to load the entire thing?
....
No, but you can save the desired row/column and then clear the full
array before going on.
--
|
|
0
|
|
|
|
Reply
|
dpb
|
10/27/2010 5:26:27 PM
|
|
"Michael " <michael.kuss@nrel.gov> wrote in message <ia9kos$3kf$1@fred.mathworks.com>...
>
> Is there any way to load only a PARTIAL array from a .mat file? Something along the lines of,
You could try this FEX tool (I haven't).
http://www.mathworks.com/matlabcentral/fileexchange/24249-mapping-files-into-working-memory
|
|
0
|
|
|
|
Reply
|
Matt
|
10/27/2010 6:35:06 PM
|
|
|
2 Replies
493 Views
(page loaded in 0.106 seconds)
|
|
|
|
|
|
|
|
|