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.

Build on Windows Operating Systems

To compile and link MAT-file programs, use the mex script with the -client engine option.

This example shows how to build the example matcreat.c. Use this example to verify the build configuration for your system. matcreat is C program that demonstrates how to use the MAT-File API routines to create a MAT-file that you can load into MATLAB®. For more information, see Create MAT-File in C or C++.

To build the example, first copy the source code to a writable folder on your path.


Use the following command to build it.

mex -client engine matcreat.c

To modify the build instructions for your particular compiler, use the -v -n options to view the current compiler and linker settings. Then, modify the settings using the mex varname=varvalue option.

See Also

Related Topics