| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Installation |
| Contents | Index |
| On this page… |
|---|
Putting the MATLAB Installation folder on the Path |
Note For more information about setting up network configurations, see the License Administration Guide. |
To start MATLAB, navigate to the MATLAB installation folder and double-click the MATLAB icon.
![]()
If you installed MathWorks products in a network configuration, the license manager must be running on your server to start MATLAB on client systems. If you accepted the defaults during installation of the license manager on your server, the installer configures the license manager to start automatically at system startup. If you need to start the license manager manually, see Starting the License Manager.
Throughout the term of your license, your MATLAB installation periodically contacts The MathWorks to verify that your license is up-to-date, a process called validation. If it determines that you need to update your license, the validation process displays a dialog box giving you the option to update your license. Validation updates expiring licenses and License Files with product configuration changes. (You can also check for License File updates at any time by selecting Help > Licensing > Update Current Licenses from the MATLAB desktop.)
The administrator contact on a license can modify validation settings for the license at the License Center at the MathWorks Web site. See the License Center Help for more information.
If you want to start MATLAB by just typing matlab at the UNIX prompt, you must put the location of the MATLAB software on your path. If the MATLAB software is not on the path, you will need to type the full path each time to run MATLAB from the prompt.
To put the MATLAB software on the path, you can add a symbolic link to the matlab command in a folder that is already on your path. For example, on a standalone, single-user machine, you can use /usr/bin.
You can add the symbolic link at the UNIX prompt by entering
ln -s matlabroot/bin/matlab
where matlabroot is the full path to your top-level MATLAB installation folder (as returned by the matlabroot command.) You must execute this command in a folder that is currently on the path, for example, /usr/bin. (To add mex and mbuild to the path, you must repeat the same process.)
For information on adding symbolic links on multiuser computers, see the Installation Guide for UNIX.
Note If you add symbolic links, you might need to rehash the UNIX path. Type rehash at the UNIX prompt. |
Printers must be added to the Printer Setup Utility in the /Applications/Utilities folder for MATLAB to recognize them. The MATLAB print command uses lpr like other UNIX systems. MATLAB uses the Macintosh default printer as set in the Printer Setup Utility if you do not use -P<printer>. For example, to print the current figure to printer trinity, you can use
print -Ptrinity
To set up a printer, open the Printer Setup Utility in /Applications/Utilities. Click Add Printer. Refer to Macintosh Help (Command+?) for additional information.
In installations where the license manager is needed, the installation process automatically configures the license manager to start when you start your system. If you accepted the defaults when you installed your MathWorks products, the installer configures the license manager to start automatically when you start your machine. If you chose not to configure the license manager during installation, the following sections describe how to configure the license manager to start at startup time or to start the license manager manually:
Note The user name associated with the license manager process should be a user that is defined locally on the system, not defined on a network. The license manager will only start up properly if the user name can be found during the startup process on the computer, before network users are available. |
The following procedure explains how to configure the license manager to start automatically. You must be an administrator to install this startup folder.
Create a folder within /Library called StartupItems, if it does not already exist.
Copy the matlabroot/etc/MATLABLmgr folder into the StartupItems folder.
Run the Terminal application (located in /Applications/Utilities) and in the Terminal window enter the commands:
cd /Library/StartupItems/MATLABLmgr ./config_lm.sh
The config_lm.sh script asks you to enter the folder where your MathWorks products are installed, that is, the MATLAB root folder (matlabroot). For example, if you installed MathWorks products in /Applications/MATLAB_R2009b, enter:
/Applications/MATLAB_R2009b
The script then asks for your user name. The script uses the user name returned by the whoami command as the default. Accept the default or enter a different user name.
During startup, the message Starting MATLAB License Manager should appear on the screen. If you have difficulty starting the license manager, see Troubleshooting for more information.
If you do not want the license manager to start automatically at startup, you can disable it. To disable the MATLABLmgr script:
In the Go to the folder field in the Go To Folder dialog box, enter
/Library/StartupItems/MATLABLmgr
and click Go. A window titled MATLABLmgr appears, containing several files.
Rename the file StartupParameters.plist to StartupParameters_disabled.plist.
You can re-enable the license manager to start at startup by following steps 1 to 3 above and renaming StartupParameters_disabled.plist back to StartupParameters.plist.
To start the license manager manually:
At the command prompt in the Terminal window, navigate to your MATLAB installation folder:
cd /Applications/MATLAB_R2009b/etc
To start the license manager, execute the following command:
./lmstart
Note Any time you make changes to the license.dat file, you must restart the license manager daemons by running lmstart. The lmstart script stops any currently running daemons and starts new ones. |
![]() | Installing MathWorks Products in a Network Configuration | Deactivating and Removing a MATLAB Installation | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |