View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

5.0 | 2 ratings Rate this file 17 Downloads (last 30 days) File Size: 443 KB File ID: #12250 Version: 1.2
image thumbnail

Project Waterloo File and Matrix Utilities



13 Sep 2006 (Updated )

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

| Watch this File

File Information

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 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


This file inspired 3 D Cube Slice.

Required Products MATLAB
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
19 May 2014 Mr Smart

09 May 2012 Malcolm Lidierth

Link in the description above.
For this component see

Comment only
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?

Comment only
28 Apr 2011 Kip

Kip (view profile)

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.

Comment only
28 Apr 2011 Malcolm Lidierth

What was the error message?

Comment only
10 Mar 2011 Kip

Kip (view profile)

Wish it worked! Using AppendMatrix with MATLAB version (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);

Comment only
05 Apr 2007 Anon Anon

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

28 Apr 2011 1.1

Cumulative minor changes

21 May 2013 1.2

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

Contact us