This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Run macOS Engine Application

This example shows how to run the C example engdemo.c from the Mac Terminal Window. You need to know 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.

setenv DYLD_LIBRARY_PATH matlabroot/bin/maci64:matlabroot/sys/os/maci64

Set the path. Make sure that you include the : path terminator character.

setenv PATH matlabroot/bin:$PATH  

Run the example. The engdemo application must be on your system path.


MATLAB starts and displays a figure.

Press Return to close the figure.

Create variable X, for example:

X = 'hello'

MATLAB displays the results and closes.

Related Examples

More About