This example shows how to run the C example engdemo.c from the macOS Terminal Window. Make note of the value of matlabroot, the folder where MATLAB® is installed.
Set the run-time library path. This command replaces the value, if any, in DYLD_LIBRARY_PATH. For more information, see Set Run-Time Library Path on macOS Systems.
Set the path. Make sure that you include the : path terminator character.
Run the example. The engdemo application must be on your system path.
MATLAB starts and displays a figure.
To close the figure, press Return.
MATLAB displays the results and closes.