comp.soft-sys.matlab
[Top] [All Lists]

Re: Partial I/O

Subject: Re: Partial I/O
From: Christopher Hulbert
Date: Fri, 30 Sep 2005 13:20:18 -0400
Newsgroups: comp.soft-sys.matlab
Chris Braun wrote:
> I would be most interested in your solution. I'm trying to load data
> from a file that contains a single 1x2 cell. nested deep within
> those cells are hundreds of structures, each with hundreds of
> matrices. It is usually possible to load the whole thing and then
> sort it out, but it takes a lot of memory. I'd really like to be
> able to load like the first 50 structures and then iterate through.
> Do you have .m files you'd be willing to share?
> -chris
> 
> Christopher Hulbert wrote:
> 
>>
>>Out of curioity, does anyone out there have a need/desire for
>>partial
>>I/O to matlab files. Such as specifying a start,stride, and number
>>of
>>elements per dimenion to write to a mat file? Say you have a 3d
>>matrix,
>>but only work with one plane at a time, you still have to read in
>>the
>>entire thing. Also, I have a Cell Array of size 10x1, but i only
>>work
>>with one cell at a time. Unfortunately I would have to load in all
>>10.
>>Well, I have been working on my own MAT file I/O library and
>>added
>>this capability in for myself. I am curious though If I'm the only
>>one
>>who likes this cability.
>>
>>Same thing with structures. What if you want just a couple fields
>>in a
>>structure?
>>

No, it's C code, but yes, I would share it.  I haven't had time to put 
up the latest load5 code, but if you are interested in the code send an 
email to cch(NO_SPAM)@isl-inc.com and I will send you the code.  If you 
would rather binaries, tell me the OS and matlab version.

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy