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
setenv DYLD_LIBRARY_PATH matlabroot/bin/maci64:matlabroot/sys/os/maci64
Set the path. Make sure that you include the
: path terminator
setenv PATH matlabroot/bin:$PATH
Run the example. The
engdemo application must be on your system
MATLAB starts and displays a figure.
Press Return to close the figure.
X, for example:
X = 'hello'
MATLAB displays the results and closes.