Contents

Building on Windows Operating Systems

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

copyfile(fullfile(matlabroot,'extern','examples','eng_mat','matcreat.c'), fullfile('c:', 'work'))

Use the following command to build it:

mex -v -client engine matcreat.c

If you need 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

Was this topic helpful?