User`s guide
6 Standalone Applications
Caution There is a limitation regarding directories on your path. If the
target machine has a MATLAB installation, the
<mcr_root> directories must
be first on the path to run the deployed application. To run M ATLAB, the
matlabroot directories must be first on the path. This restriction only applies
to configurations involving a n installed MCR and an installed MATLAB on
the same machine.
Executing the Application
Run the magicsquare standalone application from the system prompt and
provide a number representing the size of the desired magic square, for
example, 4.
magicsquare 4
The results are displayed as:
ans =
162313
51110 8
97612
41415 1
Note Input arguments you pass to a nd from a system prompt are treated as
string input and you need to consider that in your application. For more
information, see “Passing Arguments to and from a Standalone Application”
on page 5-27.
Note Before executing your MATLAB Compiler generated executable, set
the
LD_PRELOAD environment variable to /lib/li bgcc _s.so.1.
6-10