Difference between revisions of "Matlab"

From UMIACS
Jump to navigation Jump to search
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
UMIACS has [[Matlab]] licenses that cover Linux, Windows and Mac. To access them you have to be using a university owned computer. If you would like to run Matlab on a machine that is not University-owned, you can check the pricing through OIT/SLIC [https://terpware.umd.edu/Windows/Title/1866 here]
+
UMIACS has institutional Matlab licenses through UMD that cover Linux, Windows and Mac. To access them, you have to be using a University owned computer. If you would like to run Matlab on a machine that is not University owned, you can check the pricing through OIT/SLIC [https://terpware.umd.edu/Windows/Title/1866 here].
 +
 
 +
If you would like to install the institutional version of Matlab on a self-supported machine, please [[HelpDesk | contact staff]] and we can provide you install media.
  
 
==Linux==
 
==Linux==
Below are the different versions of Matlab across our supported linux workstations and servers. The one in bold is our latest version. RHEL5 is no longer supported as of R2013b, and 32-bit Linux distributions are no longer supported as of R2012b. For more information, please see [http://www.mathworks.com/support/sysreq/roadmap.html this page].
+
[[Modules]] are the preferred way to interact with Matlab on staff-managed Linux machines. The Modules page will provide information on adding Matlab into your environment and using it.
 
 
[[Modules | Modules]] is the preferred way to interact with Matlab and the page will provide information on adding Matlab into your environment and using it.
 
 
 
===RHEL5===
 
* /opt/matlab-r2007b
 
* /opt/matlab-r2008a
 
* /opt/matlab-r2008b
 
* /opt/matlab-r2009b
 
* /opt/matlab-r2010a
 
* /opt/matlab-r2010b
 
* /opt/matlab-r2011a
 
* /opt/matlab-r2011b
 
* /opt/matlab-r2012a
 
* /opt/matlab-r2012b
 
* '''/opt/matlab-r2013a'''
 
 
 
===RHEL6,7/Ubuntu===
 
 
 
* /opt/common/matlab-r2007b
 
* /opt/common/matlab-r2008a
 
* /opt/common/matlab-r2008b
 
* /opt/common/matlab-r2009b
 
* /opt/common/matlab-r2010a
 
* /opt/common/matlab-r2010b
 
* /opt/common/matlab-r2011a
 
* /opt/common/matlab-r2011b
 
* /opt/common/matlab-r2012a
 
* /opt/common/matlab-r2012b
 
* /opt/common/matlab-r2013a
 
* /opt/common/matlab-r2013b
 
* /opt/common/matlab-r2014a
 
* /opt/common/matlab-r2014b
 
* '''/opt/common/matlab-r2015a'''
 
  
 
==Windows==
 
==Windows==
Below are the different locations of Matlab available for university-owned machines running Windows. The one in bold is the latest version we have available:
+
All staff-managed Windows machines should come with a pre-installed version of Matlab. Please [[HelpDesk | contact staff]] if you would like a later version installed.
 
 
* Matlab r2007a
 
* Matlab r2007b
 
* Matlab r2008a
 
* Matlab r2008b
 
* Matlab r2009a
 
* Matlab r2009b
 
* Matlab r2010a
 
* Matlab r2010b
 
* Matlab r2011a
 
* Matlab r2011b
 
* Matlab r2012a
 
* Matlab r2012b
 
* Matlab r2013a
 
* Matlab r2013b
 
* Matlab r2014a
 
* Matlab r2014b
 
* Matlab r2015a
 
* '''Matlab r2016a'''
 
  
 
==macOS==
 
==macOS==
Below are the different locations of Matlab available for university-owned machines running macOS. We expect that all versions should run on macOS 10.8 and newer. The one in bold is the latest version we have available:
+
Please [[HelpDesk | contact staff]] if you would like Matlab installed on a staff-managed macOS machine.
 
 
* Matlab r2008a
 
* Matlab r2008b
 
* Matlab r2009b
 
* Matlab r2010a
 
* Matlab r2010b
 
* Matlab r2011b
 
* Matlab r2012a
 
* Matlab r2012b
 
* Matlab r2013a (macOS 10.8+)
 
* '''Matlab r2013b''' (macOS 10.8+)
 
 
 
==License Troubleshooting==
 
  
Campus has a limited number of seats for Matlab itself, as well as the various toolboxes. When calling functions in a toolbox, Matlab will automatically check out a license, making it temporarily unavailable to other users. Sometimes it's necessary to check the number of toolbox licenses available.
+
==License Information==
 +
Campus has a limited number of seats for Matlab itself, as well as the various toolboxes. When calling functions in a toolbox, Matlab will automatically check out a license for that toolbox, making it temporarily unavailable to other users. If while attempting to use Matlab, you run into a license manager error stating that the maximum number of users for Matlab has been reached, this likely indicates that all of campus' available licenses are in use. To check the number of licenses available for a specific toolbox, please see the below sections:
  
 
===Windows License Troubleshooting===
 
===Windows License Troubleshooting===
Line 81: Line 19:
 
  $MATLAB_PATH\etc\win64\lmutil lmstat -c "$MATLAB_PATH\licenses\network.lic" -f $TOOLBOX_SHORTNAME
 
  $MATLAB_PATH\etc\win64\lmutil lmstat -c "$MATLAB_PATH\licenses\network.lic" -f $TOOLBOX_SHORTNAME
  
As an example, here is how to query Matlab r2012b on a 64-bit Windows 7 host for the Aerospace Blockset Toolbox:  
+
As an example, here is how to query Matlab r2012b on a 64-bit Windows host for the Aerospace Blockset Toolbox:  
 
  "C:\Program Files\matlab\r2012b\etc\win64\lmutil.exe" lmstat -c "C:\Program Files\matlab\r2012b\licenses\network.lic" -f Aerospace_Blockset
 
  "C:\Program Files\matlab\r2012b\etc\win64\lmutil.exe" lmstat -c "C:\Program Files\matlab\r2012b\licenses\network.lic" -f Aerospace_Blockset
  
 
===Unix License Troubleshooting===
 
===Unix License Troubleshooting===
 
On Unix machines, the necessary command is as follows. Please note that you may need to adjust the path to reflect the available Matlab versions and the installation path. Additionally, this assumes that you are using a 64-bit version. "glnxa64" needs to adjusted to "glnx86" on a 32-bit installation::
 
On Unix machines, the necessary command is as follows. Please note that you may need to adjust the path to reflect the available Matlab versions and the installation path. Additionally, this assumes that you are using a 64-bit version. "glnxa64" needs to adjusted to "glnx86" on a 32-bit installation::
  $MATLAB_PATH/bin/glnxa64/lmutil lmstat -c $MATLAB_PATH/licenses/network.lic -f $TOOLBOX_SHORTNAME
+
  $MATLAB_PATH/etc/glnxa64/lmutil lmstat -c $MATLAB_PATH/licenses/network.lic -f $TOOLBOX_SHORTNAME
  
As an example, here is how to query Matlab r2010b on our 64-bit RHEL6/RHEL7 hosts for the Parallel Computing Toolbox:
+
As an example, here is how to query Matlab r2015a on our 64-bit RHEL hosts for the Parallel Computing Toolbox:
  /opt/common/matlab-r2015a/bin/glnxa64/lmutil lmstat -c /opt/matlab-r2010b/licenses/network.lic -f Distrib_Computing_Toolbox
+
  /opt/common/matlab-r2015a/etc/glnxa64/lmutil lmstat -c /opt/common/matlab-r2015a/licenses/network.lic -f Video_and_Image_Blockset
  
 
===Toolbox Shortnames===
 
===Toolbox Shortnames===
The toolbox names themselves don't always work with this command; Rather, Matlab has a set of shortnames which can be passed to the lmstat command. The following are all the valid shortnames:
+
The toolbox names themselves don't always work with this command; rather, Matlab has a set of shortnames which can be passed to the lmstat command. The following are all the valid shortnames:
  
 
  Aerospace_Blockset   
 
  Aerospace_Blockset   
  Aerospace_Toolbox   
+
  Aerospace_Toolbox
 +
Antenna_Toolbox  
 
  Bioinformatics_Toolbox   
 
  Bioinformatics_Toolbox   
 
  Communication_Blocks   
 
  Communication_Blocks   
Line 108: Line 47:
 
  Econometrics_Toolbox   
 
  Econometrics_Toolbox   
 
  Excel_Link   
 
  Excel_Link   
  Fin_Derivatives_Toolbox   
+
  Fin_Derivatives_Toolbox
 +
Fin_Instruments_Toolbox  
 
  Financial_Toolbox   
 
  Financial_Toolbox   
 
  Fixed_Income_Toolbox   
 
  Fixed_Income_Toolbox   
  Fixed_Point_Toolbox   
+
  Fixed_Point_Toolbox
 +
  Fuzzy_Toolbox
 
  GADS_Toolbox   
 
  GADS_Toolbox   
 
  Identification_Toolbox   
 
  Identification_Toolbox   
Line 125: Line 66:
 
  MPC_Toolbox   
 
  MPC_Toolbox   
 
  Neural_Network_Toolbox   
 
  Neural_Network_Toolbox   
  Optimization_Toolbox   
+
  Optimization_Toolbox
  PDE_Toolbox   
+
OPC_Toolbox  
 +
  PDE_Toolbox
 +
Phased_Array_System_Toolbox  
 
  Real-Time_Workshop   
 
  Real-Time_Workshop   
  Robust_Toolbox   
+
Robotics_System_Toolbox
 +
  Robust_Toolbox
 +
  RTW_Embedded_Coder
 
  Signal_Blocks   
 
  Signal_Blocks   
  Signal_Toolbox   
+
  Signal_Toolbox
 +
SimEvents  
 
  SimMechanics   
 
  SimMechanics   
 
  Simscape   
 
  Simscape   
 
  SIMULINK   
 
  SIMULINK   
  Simulink_Control_Design   
+
  Simulink_Control_Design
 +
Simulink_Design_Optim  
 
  Stateflow   
 
  Stateflow   
 
  Stateflow_Coder   
 
  Stateflow_Coder   
Line 146: Line 93:
  
 
==Matlab Customizations==
 
==Matlab Customizations==
 
 
You can tweak your Matlab experience using a file "startup.m". If this file is present in the current working directory where you launch Matlab, it will be executed. You can perform a variety of tasks using this file. These include (but are not limited to) customizing the window environment, setting variables for later use, and enabling use of 3rd party toolboxes. Alternatively, you can use the userpath env variable to set a path other than the current working directory for startup and 3rd party toolbox locations. Please see the following links for more information:
 
You can tweak your Matlab experience using a file "startup.m". If this file is present in the current working directory where you launch Matlab, it will be executed. You can perform a variety of tasks using this file. These include (but are not limited to) customizing the window environment, setting variables for later use, and enabling use of 3rd party toolboxes. Alternatively, you can use the userpath env variable to set a path other than the current working directory for startup and 3rd party toolbox locations. Please see the following links for more information:
  
 
* [http://www.mathworks.com/help/matlab/ref/matlabrc.html Mathworks: Startup.m]
 
* [http://www.mathworks.com/help/matlab/ref/matlabrc.html Mathworks: Startup.m]
* [http://www.mathworks.com/help/matlab/matlab_env/startup-folder-for-the-matlab-program.html#bs6j57e-5 Mathworks: Userpath function]
+
* [https://www.mathworks.com/help/matlab/ref/userpath.html Mathworks: Userpath function]

Latest revision as of 19:36, 24 September 2020

UMIACS has institutional Matlab licenses through UMD that cover Linux, Windows and Mac. To access them, you have to be using a University owned computer. If you would like to run Matlab on a machine that is not University owned, you can check the pricing through OIT/SLIC here.

If you would like to install the institutional version of Matlab on a self-supported machine, please contact staff and we can provide you install media.

Linux

Modules are the preferred way to interact with Matlab on staff-managed Linux machines. The Modules page will provide information on adding Matlab into your environment and using it.

Windows

All staff-managed Windows machines should come with a pre-installed version of Matlab. Please contact staff if you would like a later version installed.

macOS

Please contact staff if you would like Matlab installed on a staff-managed macOS machine.

License Information

Campus has a limited number of seats for Matlab itself, as well as the various toolboxes. When calling functions in a toolbox, Matlab will automatically check out a license for that toolbox, making it temporarily unavailable to other users. If while attempting to use Matlab, you run into a license manager error stating that the maximum number of users for Matlab has been reached, this likely indicates that all of campus' available licenses are in use. To check the number of licenses available for a specific toolbox, please see the below sections:

Windows License Troubleshooting

On Windows machines, the necessary command is as follows. Please note that you may need to adjust the path to reflect the available Matlab versions and the installation path. Additionally, this assumes that you are using a 64-bit version. "win64" needs to be adjusted to "win32" on a 32-bit installation:

$MATLAB_PATH\etc\win64\lmutil lmstat -c "$MATLAB_PATH\licenses\network.lic" -f $TOOLBOX_SHORTNAME

As an example, here is how to query Matlab r2012b on a 64-bit Windows host for the Aerospace Blockset Toolbox:

"C:\Program Files\matlab\r2012b\etc\win64\lmutil.exe" lmstat -c "C:\Program Files\matlab\r2012b\licenses\network.lic" -f Aerospace_Blockset

Unix License Troubleshooting

On Unix machines, the necessary command is as follows. Please note that you may need to adjust the path to reflect the available Matlab versions and the installation path. Additionally, this assumes that you are using a 64-bit version. "glnxa64" needs to adjusted to "glnx86" on a 32-bit installation::

$MATLAB_PATH/etc/glnxa64/lmutil lmstat -c $MATLAB_PATH/licenses/network.lic -f $TOOLBOX_SHORTNAME

As an example, here is how to query Matlab r2015a on our 64-bit RHEL hosts for the Parallel Computing Toolbox:

/opt/common/matlab-r2015a/etc/glnxa64/lmutil lmstat -c /opt/common/matlab-r2015a/licenses/network.lic -f Video_and_Image_Blockset

Toolbox Shortnames

The toolbox names themselves don't always work with this command; rather, Matlab has a set of shortnames which can be passed to the lmstat command. The following are all the valid shortnames:

Aerospace_Blockset   
Aerospace_Toolbox
Antenna_Toolbox  
Bioinformatics_Toolbox  
Communication_Blocks  
Communication_Toolbox  
Compiler  
Control_Toolbox  
Curve_Fitting_Toolbox  
Data_Acq_Toolbox  
Database_Toolbox  
Datafeed_Toolbox  
Distrib_Computing_Toolbox  
Econometrics_Toolbox  
Excel_Link  
Fin_Derivatives_Toolbox
Fin_Instruments_Toolbox  
Financial_Toolbox  
Fixed_Income_Toolbox  
Fixed_Point_Toolbox
Fuzzy_Toolbox 
GADS_Toolbox  
Identification_Toolbox  
Image_Acquisition_Toolbox  
Image_Toolbox  
Instr_Control_Toolbox  
MAP_Toolbox  
MATLAB  
MATLAB_Builder_for_Java  
MATLAB_Coder  
MATLAB_Excel_Builder  
MATLAB_Report_Gen  
MPC_Toolbox  
Neural_Network_Toolbox  
Optimization_Toolbox
OPC_Toolbox  
PDE_Toolbox
Phased_Array_System_Toolbox  
Real-Time_Workshop  
Robotics_System_Toolbox 
Robust_Toolbox
RTW_Embedded_Coder
Signal_Blocks  
Signal_Toolbox
SimEvents  
SimMechanics  
Simscape  
SIMULINK  
Simulink_Control_Design
Simulink_Design_Optim  
Stateflow  
Stateflow_Coder  
Statistics_Toolbox  
Symbolic_Toolbox  
Video_and_Image_Blockset  
Virtual_Reality_Toolbox  
Wavelet_Toolbox

If you are having problems, feel free to contact UMIACS Staff, however please note that the Matlab license servers are hosted by campus' Division of Information Technology.

Matlab Customizations

You can tweak your Matlab experience using a file "startup.m". If this file is present in the current working directory where you launch Matlab, it will be executed. You can perform a variety of tasks using this file. These include (but are not limited to) customizing the window environment, setting variables for later use, and enabling use of 3rd party toolboxes. Alternatively, you can use the userpath env variable to set a path other than the current working directory for startup and 3rd party toolbox locations. Please see the following links for more information: