I'm trying to query variable names in a very large .mat
file (> 1 GB) without having to load the .mat file first
(which takes 10+ minutes). I'm running Matlab 7.0 SP2 on
32-bit Windows XP Professional.
I thought I had hit the jackpot with:
vars = whos('-file','largefile.mat')
But this still takes what I consider to be an excessive
amount of time (3-5 minutes).
Are there any other ideas about how to return the variable
names in a very large .mat file in a timely manner?
Daniel wrote:
> I'm trying to query variable names in a very large .mat
> file (> 1 GB) without having to load the .mat file first
> (which takes 10+ minutes). I'm running Matlab 7.0 SP2 on
> 32-bit Windows XP Professional.
>
> I thought I had hit the jackpot with:
>
> vars = whos('-file','largefile.mat')
>
> But this still takes what I consider to be an excessive
> amount of time (3-5 minutes).
>
> Are there any other ideas about how to return the variable
> names in a very large .mat file in a timely manner?
Considering the huge file size, it will take some time to search the variables. Other option is you open the workspace and load the file directly there and see the variables in the works space.
On Jan 15, 7:53 pm, "Daniel " <danielrvaug...@gmail.com> wrote:
> I'm trying to query variable names in a very large .mat
> file (> 1 GB) without having to load the .mat file first
> (which takes 10+ minutes). I'm running Matlab 7.0 SP2 on
> 32-bit Windows XP Professional.
>
> I thought I had hit the jackpot with:
>
> vars = whos('-file','largefile.mat')
>
> But this still takes what I consider to be an excessive
> amount of time (3-5 minutes).
>
> Are there any other ideas about how to return the variable
> names in a very large .mat file in a timely manner?
Right click on the .mat file in the Current Directory window and
select "Import Data". Is that any faster?
Gary <grubin698@gmail.com> wrote in message <cd82df14-a36c-
42ae-9ddd-79a2d175934b@v29g2000hsf.googlegroups.com>...
> On Jan 15, 7:53 pm, "Daniel " <danielrvaug...@gmail.com>
wrote:
> > I'm trying to query variable names in a very large .mat
> > file (> 1 GB) without having to load the .mat file first
> > (which takes 10+ minutes). I'm running Matlab 7.0 SP2 on
> > 32-bit Windows XP Professional.
> >
> > I thought I had hit the jackpot with:
> >
> > vars = whos('-file','largefile.mat')
> >
> > But this still takes what I consider to be an excessive
> > amount of time (3-5 minutes).
> >
> > Are there any other ideas about how to return the variable
> > names in a very large .mat file in a timely manner?
>
>
> Right click on the .mat file in the Current Directory window
and
> select "Import Data". Is that any faster?
If you choose the way "Import Data", you can use the function
uiimport
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Disclaimer prior to use.