Reading from a Mat-File:
The load function is used to read from various types of files. As with save function, by default the file will be supposed to be a MAT-file, and load can load all the variables from the file or only a subset. For illustration, in a new Command Window session in which no variables have been generated yet, the load function could load from the files generated.
>> who
>> load sess2
>> who
Your variables are:
mymat x
The subset of variables in a file can be loaded by identifying them in the form
load filename variable list