5.0

5.0 | 1 rating Rate this file 24 Downloads (last 30 days) File Size: 442.53 KB File ID: #12250
image thumbnail

Project Waterloo File and Matrix Utilities

by Malcolm Lidierth

 

13 Sep 2006 (Updated 13 Nov 2011)

Utilities for partial input/output from MATLAB MAT-files, HDF5-files and custom binary files.

| Watch this File

File Information
Description

Utilities for partial input/output from MATLAB MAT-files, HDF5-files and custom binary files.

Appropriate use of the custom classes provided here can speed MATLAB code execution typically by 2- to 20-fold.

I/o is supported using
[1] virtual memory mapping of files (recommended: Version 6 MAT, HDF5 and binary files).
[2] low-level i/o using fread (Version 6 MAT- files /HDF5/binary).
[3] via the matlab.io.MatFile class for Version 7.3 MAT-files with R2011b+.

The previous MAT-file utilities for writing Version 6 MAT-files are included in the library.
Various functions for converting between file types are also included.

The full code is available for download at http://sigtool.sourceforge.net/

Acknowledgements
This submission has inspired the following:
3D Cube Slice
Required Products MATLAB
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
05 Apr 2007 Anon Anon  
10 Mar 2011 Kip

Wish it worked! Using AppendMatrix with MATLAB version 7.9.0.529 (R2009b) I get:

Error in ==> where at 267
    if strcmp(Name,'0123456789') && ~isempty(s(1).name)

Error in ==> CheckIsLastEntry at 35
w=where(filename, varname);

Error in ==> argcheck at 32
    if CheckIsLastEntry(filename,varname)==false

Error in ==> AppendMatrix at 56
filename=argcheck(filename, varname);

28 Apr 2011 Malcolm Lidierth

Kip
What was the error message?

28 Apr 2011 Kip

Malcolm straightened me out. Thank you! The files really do need to be -v6. Still wish there was a more flexible way to do this, but this is a nice start.

09 May 2012 Robert Pardridge

Um, why is there only a pdf and a txt file in the download? Where are the actual matlab files?

09 May 2012 Malcolm Lidierth

@Robert
Link in the description above.
For this component see http://sourceforge.net/projects/waterloo/files/Waterloo%20MATLAB%20Utilities/

Please login to add a comment or rating.
Updates
14 Sep 2006

VarRename cleanly exits on non-Windows platforms (which it has not been tested on).
Unnecessary global variable declarations removed

14 Sep 2006

Apologies. Previoussly deleted global declarations were required.

22 Sep 2006

Coding improved. Global vars removed.
WHERET functionality included in WHERE.
Tested on big-endian MAT-files.

03 Nov 2006

Now platform-independent

06 Dec 2006

New functions included

30 Jan 2007

Minor bug fix (argcheck). Improved VarRename

28 Apr 2011

Cumulative minor changes

13 Nov 2011

OOP-based. Support for V6/7/7.3 MAT-files, HDF5 and binary files

Tag Activity for this File
Tag Applied By Date/Time
path Malcolm Lidierth 22 Oct 2008 08:39:05
directories Malcolm Lidierth 22 Oct 2008 08:39:05
files Malcolm Lidierth 22 Oct 2008 08:39:05
mat fread fwrite memmapfile Malcolm Lidierth 22 Oct 2008 08:39:05
fread Malcolm Lidierth 14 Nov 2011 10:09:24
mat Malcolm Lidierth 14 Nov 2011 10:09:24
fwrite Malcolm Lidierth 14 Nov 2011 10:09:24
memmapfile Malcolm Lidierth 14 Nov 2011 10:09:24
matlabiomatfile Malcolm Lidierth 14 Nov 2011 10:09:24
virtual memory Malcolm Lidierth 14 Nov 2011 10:09:24
partial io Malcolm Lidierth 14 Nov 2011 10:09:24

Contact us at files@mathworks.com