External Interfaces |
Step 4 -- Set Run-time Library Path
At run-time, you need to tell the system where the API shared libraries reside.
On UNIX Systems
Set the library path as follows for the C and Bourne shells. In the commands shown, replace the terms envvar
and pathspec
with the appropriate values from the table below.
In the C shell, the command to set the library path is
envvar
=pathspec
:envvar
exportenvvar
Here is an example for a Solaris system for the C shell:
You can place these commands in a startup script such as ~/.cshrc
for C shell or ~/.profile
for Bourne shell.
On Windows Systems
Set the Path
environment variable to the path string returned by MATLAB in response to the following expression:
To set an environment variable in Windows, click the Start button in the lower left corner of your desktop, point with the cursor to Settings and then Control Panel, and then click on System. Windows opens the System Properties dialog box. Click the Advanced tab, and then the Environment Variables button.
In the System variables panel, scroll down until you find the Path
variable. Click on this variable to highlight it, and then click the Edit button to open the Edit System Variable dialog. At the end of the path string, enter a semicolon and then the path string returned by evaluating the expression shown above in MATLAB. Click the OK button in the Edit System Variable dialog box, and all remaining dialogs.
Step 3 -- Build the Application | Step 5 -- (Windows Only) Register MATLAB As a COM Server |
© 1994-2005 The MathWorks, Inc.