External Interfaces/API    

Creating a MAT-File in Fortran

This example creates a MAT-file, matdemo.mat.

Once you have compiled and linked your MAT-file program, you can run the stand-alone application you have just produced. This program creates a MAT-file, matdemo.mat, that can be loaded into MATLAB. To run the application, depending on your platform, either double-click on its icon or enter matdemo1 at the system prompt.

To verify that the MAT-file has been created, at the MATLAB prompt enter


  Reading a MAT-File in C Reading a MAT-File in Fortran