Main Content

Build Windows Engine Application

This example shows how to verify the build process on Windows® platforms using the C example engwindemo.c.

Start MATLAB® as a user with administrator privileges. Based on your User Account Control (UAC) settings, you might need to right-click the MATLAB icon and select Run as administrator. If that option is not available, contact your system administrator.

Register MATLAB as a COM server.

!matlab -regserver

MATLAB displays a second, minimized command window. Close that window.

Verify your current folder is writable and copy the example.

copyfile(fullfile(matlabroot,'extern','examples','eng_mat','engwindemo.c'),'.','f')

Choose a compiler, if necessary.

mex -setup -client engine C

Build the application.

mex -v -client engine engwindemo.c

See Also

Related Examples

More About