Build and Run Mac and Linux Engine Application

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.

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

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:

dir engdemo

Run the example in MATLAB®.


MATLAB launches a separate MATLAB session.

Related Examples

More About

Was this topic helpful?