Run Engine Application on Linux - MATLAB & Simulink (original) (raw)

Main Content

This example shows how to run the C exampleengdemo.c from the Linux® system prompt. 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, inLD_LIBRARY_PATH.

setenv LD_LIBRARY_PATH matlabroot/bin/glnxa64:matlabroot/sys/os/glnxa64

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.

To close the figure, press Return.

Create variable X, for example:

MATLAB displays the results and closes.

See Also

Topics