This example shows how to verify the build process on Windows® platforms using the C example
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 displays a second, minimized command window. Close that window.
Verify your current folder is writable and copy the example.
Choose a compiler, if necessary.
mex -setup -client engine C
Build the application.
mex -v -client engine engwindemo.c