This example shows how to verify the build process on Mac and Linux® platforms using the C example, engdemo.c.
Copy the example to a writable folder.
Build the executable file.
mex -client engine engdemo.c
Verify that the build worked by looking in your current working folder for the engdemo application:
Run the example in MATLAB®.
MATLAB launches a separate MATLAB session.