This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Create MAT-File in Fortran

The matdemo1.F example creates the MAT-file, matdemo.mat. To see the code, you can open the file in MATLAB® Editor.

After building the program, run the application. This program creates a MAT-file, matdemo.mat, that you can load into MATLAB. To run the application, depending on your platform, either double-click its icon or type matdemo1 at the system prompt:

Creating MAT-file matdemo.mat ...
Done creating MAT-file

To verify the MAT-file, at the MATLAB command prompt, type:

whos -file matdemo.mat
  Name               Size            Bytes  Class     Attributes

  Numeric            3x3                72  double              
  NumericGlobal      3x3                72  double    global    
  String             1x33               66  char                


For an example of a Microsoft® Windows® standalone program (not MAT-file specific), see engwindemo.c in the matlabroot\extern\examples\eng_mat folder.

Related Topics