Thread Subject: viewing variables in a large .mat file

Subject: viewing variables in a large .mat file

From: Daniel

Date: 16 Jan, 2008 00:53:09

Message: 1 of 5

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?

Subject: viewing variables in a large .mat file

From: marky

Date: 16 Jan, 2008 09:02:43

Message: 2 of 5

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?

see if
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=12250
is of any use to you.

Subject: viewing variables in a large .mat file

From: Yumnam Kirani Singh

Date: 16 Jan, 2008 11:49:48

Message: 3 of 5

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.

Subject: viewing variables in a large .mat file

From: Gary

Date: 16 Jan, 2008 15:19:18

Message: 4 of 5

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?

Subject: viewing variables in a large .mat file

From: Anh Huy Phan

Date: 16 Jan, 2008 15:34:01

Message: 5 of 5

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

uiimport(filename)

Anh Huy Phan
RIKEN - BSI

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
whos Daniel 15 Jan, 2008 19:55:00
rssFeed for this Thread

Public Submission Policy

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.

Contact us at files@mathworks.com