Using the C++ Math Library    

Importing Array Data from a MAT-File

Using load(), you can read in mwArray data from a binary MAT-file. The prototype for load() is:

file contains the name of the MAT-file. You must pass at least one pair of arguments indicating the name of a variable that you want to load and a pointer to an mwArray variable that will receive the data:

For more information on MAT-files, consult the MATLAB Application Program Interface Guide.


 Exporting Array Data to a MAT-File Example - Using load() and save() (ex7.cpp)