User`s guide

R2011b
8-10
Programming
Load and Save Parts of Variables in V7.3 MAT-Files
The new matfile function creates a matlab.io.MatFile object that can efficiently
load or save to parts of variables in Version 7.3 MAT-Files. Loading part of a variable
requires less memory than loading the entire contents of that variable.
For example, these commands create a MAT-file and add data to part of variable X:
new = matfile('newfile.mat','Writable',true);
new.X(6:10,6:10) = magic(5);
This command loads part of the data into variable partOfX:
partOfX = new.X(1:8,1:8);
Note: Syntax such as size(new.X) or new.X(end,end) temporarily loads the entire
contents of variable X into memory. To determine the size of a variable without loading,
use the size method for matlab.io.MatFile objects:
sizeOfX = size(new,'X');
For more information, see the matfile reference page or watch this video demo.
Nonmatching Function Name Warning is Now an Error
In previous releases of MATLAB, entering a function name that did not match any
known function name in the given letter case resulted in a warning. After displaying this
warning message, MATLAB attempted find a function that would match if letter case
were ignored. If such a match were found, MATLAB ran this function instead.
In MATLAB R2011b, the MATLAB software generates an error if it can’t find an exact-
case match. The message displayed by the error may suggest the correct spelling for the
function that was entered. The message identifier for this error reads as follows:
'MATLAB:dispatcher:InexactCaseMatch'