- Computing Services

Tools
Latest software news

EndNote X5 not compatible with Mavericks OS X 10.9 - October 2013

Ansys network Licence update - September 2013

Maple network Licence update  - August 2013

ChemDraw replaces ChemBioDraw on campus, June 2013 - 28 May 2013

 

HomeToolsSoftwareManaged softwareapplications → Matlab

Matlab

» List of managed software

Software Title and Version Matlab - The Mathworks
Software availability and installation
Where is the software available? All university owned computers, terminal servers e.g. Gigaterms, staff and PG own machines.
How do I access it?
  1. Learning Centre workstations already available
  2. IT Labs already available
  3. Department IT labs already available
  4. University owned desktop workstations made available through Active Directory, must be requested.
  5. Personal workstations must be loaded individually.
Who can use it?
  1. All students and staff on university owned workstations
  2. All staff on personal workstations
  3. All PG students on personal workstations
  4. UG students CANNOT use it on personal workstations
What operating systems does it run under? Windows, MacOS, Linux
How do I get it installed?
Either contact IT Supporter (Raise RT Ticket to local IT Support Team) who will either :
  1. Give you access given through Active Directory (AD) group if you are using a university owned computer on the university network which is managed through AD.
  2. Assist you to download the software from The Mathworks website using their authorisation

Or

Download the software from Secure Downloads for which you will need to enter your BUCS username and password to access the given link.

Licence details
Licence type
  1. Campus, using licence server Flexlm
  2. Activation from The Mathworks website by IT Supporters
Vendor / Reseller Contact The Mathworks
License expiry / renewal date ??? LicenseExpires ???
For Supporters »
Auto-deployment information

AD Packages - Matlab

Installation directory Local Installation: C:\Program Files\MATLAB\ AD Installation: \\campus\Files\Public\Applications\MATLAB\
Start menu entry All Programs \ Matlab R#
Dependencies & prerequisites .NET framework 1.1 or greater, and VC++ 2005 Redistributables SP1. Precedence is not an issue.
Installation documentation ??? HowToInstall ???
Known problems

Covered in text below...

Where can it be installed?

PACs, Terms and Department computers (AD & non AD)

On Active Directory?

Yes (Raise RT ticket to local IT Support Team)

General information

+ Expand All |  - Collapse All

Introduction

 

Matlab is a numerical computing and programming environment that allows engineers to perform simulation and analysis work. It is written and produced by Mathworks. See also the WikiPedia description.

It is important to note that this page is NOT intended to assist the user with actually using Matlab, that is the role of ones supervisor, but seeks to provide users with additional information concerning its use within the University and specifically within Department of Mechanical Engineering. IT Support can only provide basic support to ensure that it operates. It cannot advise on Matlab Technical problems.

The University has a site license to use Matlab widely across campus for Academic Teaching and Research.

Earlier versions of Matlab were designated as R12, R13, R14 etc. However, , from 2006 onwards Matlab versions were designated with the year (E.G. 2006, 2007 etc). Of which there are two updates per year, these being referred to as a/b. In so far as Undergraduate systems are concerned, The University cannot of course update during the year, unless there is a technical reason why it may be forced to, otherwise this could impact on teaching if things have changed since the course was planned. The latest version of Matlab available on campus is 2009b.

Whilst we do our best to ensure that the information given below is accurate, it can sometimes be difficult to obtain specific information. If you should spot an error or ommision or have any information or comments that you think would be beneficial to the page and thus other users then please do get in touch via RT.

For license conditions please see the section Matlab License Management below.

 JUNE 2010...

The campus Matlab license has now been renewed for the period 2010-2011. Active Directory installations and manual installations that access the campus FlexLM license server need do nothing as this is automatically taken care of. Users of standalone systems with local licenses may need to update their local license.

If you are updating the same license on the computer and you have an Internet Connection, go to MATLAB's Help menu and select Licensing > Update Current License to automatically download the latest license file. If you have any difficulties doing this and the standalone license was originally obtained through your local IT Support team, then use RT and ask for an updated license file. Please include the MAC address you used to authenticate the original license file.

For more information please see…

How do I update the license for my existing standalone installation of MATLAB?

Please note that from Nov 18 2010 Mathworks will will require e-mail verification for new MathWorks Accounts. After submitting the MathWorks Account form, licensed end users will receive an e-mail with a link to verify their e-mail address, which they must click to complete the account-creation process. MathWorks Accounts created by licensed end users before November 18th will not require e-mail verification. Also, MathWorks Accounts created by an administrator of a license do not require e-mail verification.

How does this change affect me?
MathWorks is providing this information to help you plan for changes to your software deployment process for R2011a. As an administrator of a license, you may need to update the installation instructions you provide your end users if creating a MathWorks Account is part of your deployment process.

Do I need to reinstall Matlab when updating the License file?

You would only need to carryout a re-installation if the toolboxes available to the original installation (and therefore license file) differ to that available to the new license file. Assuming that the toolboxes you are using continue to be covered by the new license then you should not need to carryout a re-installation when updating the license file. For details of what toolboxes are covered by the latest site license please see Matlab Toolboxes below.

 

Other Information...

There is a very good Matlab site maintained by a member of staff at the University of Manchester with lots of ideas and examples of doing things with Matlab. It is at: http://www.walkingrandomly.com/

Matlab Users Email List

 

All Matlab users should add themselves to the <matlab-tah-users@lists.bath.ac.uk> email list. Note that the old 'en-matlab' email list has now been deleted (29/10/2009). This new list will be used to act as a self help, information list for all users of Matlab across campus. It will also be the list that the University software licensing staff will use to advise users of any important information regarding the licensing of Matlab (Toolboxes etc).

To subscribe to this list...

  1. Use a web browser to navigate to: https://lists.bath.ac.uk/sympa
  2. In the 'Search Lists' box enter matlab-tah-users and click on the Search Lists button
  3. Click on the (blue) list name matlab-tah-users shown at the top of the page
  4. From the left hand menu, click on Subscribe (You can also use this menu to unsubscribe)
  5. At the prompt 'Do you really want to subscribe to list matlab-tah-users?' Click OK
  6. Enter your email address (E.G. a.n.other@bath.ac.uk) into the dialogue box then click [submit]
  7. You will be prompted for your University password, enter it in and click [subscribe]

If you have any information that you feel would be of benefit to other Matlab users, please contact (D.J.Barker@bath.ac.uk).

For assistance from Mathworks start at: http://www.mathworks.com/matlabcentral/

 

Matlab Courses

 

Where and when known about, Matlab courses will be shown here for user reference...

 

Please click this link for a list of up and coming Mathworks/Matlab Training Courses

For further information on Mathworks training course please visit their Training Services web site.

See also the Mathworks User Community site, for which you may need a Mathworks user login

 

Installations Available

 

The following versions of Matlab are still available on campus...

Version Status Status
R12 VERY Old, hardly ever used Man, Pre TAH, dat
R13 Old, but used with some older 3rd party software such as DSpace, which are unable to use the newer versions of Matlab. Man, Pre TAH, dat
R14 Old, but sometimes used with older 3rd party software that requires Matlab to be installed. Man, Pre TAH, dat
2006a Rarely used AD-Loc & Man, Pre TAH, dat
2007a Used on some laptops AD-Loc & Man, TAH, dat
2008a/b Still in current use AD-Net & Man, TAH, lic
2009b Latest version available AD-Net & Man, TAH, lic
     
Legend...
Man Can be installed using a local manual installation available via removable media (I.E. CD's, or for 2007a onwards via an ISO image file). For campus non AD networked computers can use the campus network license. For non networked computers can use a standalone license activated against the Mathworks web site.
AD-Net Available for assignment via Active Directory. Runs on the local computer but is installed on a network drive. Uses the campus License manager.
AD-Loc Available for assignment via Active Directory. Runs on the local computer and installed on the local computer. Uses the campus License manager.
Pre TAH Means that it originally used a different license manager to that now available under TAH. However, whilst it can use the TAH FlexLM license manager, not all of the original toolboxes are necessarily available to it.
dat Uses a ...\MATLAB\R1#\bin\win32\license.dat file to handle licensing. This can be either a discrete set of TAH license codes or a link to the campus Matlab FlexLM license server.
lic

Uses a ...\MATLAB\R200#\licenses\license.lic file to handle licensing. This can be either a discrete set of TAH license codes or a link to the campus Matlab FlexLM license server.

All network FlexLM licensing now uses the matlablm.bath.ac.uk (port 19944) network license manager, which clearly requires that the computer has access to the University network in order to access the network license manager.

The older R12, R13 and R14 versions become increasingly more difficult to support and obtain licenses for. Though there are some other software applications in use that rely on older versions of Matlab as a prerequisite. These versions can still be obtained via the Mathworks web site and there are some CD's still 'floating about' on campus.

The latest Matlab version used on campus is also available on the Terminal Services machines and Library PC's and is available as a manual installation via the secure download site on University owned laptops.

Undergraduates and taught PG's are not able to access this software from the Secure Download site. A 'Student copy' of Matlab is available from some major bookshops or from the Mathworks website. However, it does not come with all the toolboxes used under the campus license. However, users with broadband access from home may access the University's Gigaterm terminal services machines in order to run Matlab (and other software) remotely. You do not require VPN for this form of connection.

 

MATLAB 2007a/2008a
Available on Active Directory. These versions run the MapleSoft toolboxes -> Symbolic Maths and Extended Symbolic Maths. No further versions of MATLAB will use these toolboxes as MapleSoft have removed them from use with MATLAB.

MATLAB 2008b
Available on Active Directory and the terminal servers. For this version and all future versions, the 'symbolic toolbox' has now changed totally, and is MuPad not Maple.

It is not possible to run the MapleSoft and Mathworks Maths toolboxes on the same version. With the above installations you have access to all the toolboxes currently available.

The following sections give further information specific to each Matlab version. Please note that information for versions no longer distributed or supported will be maintained for legacy systems but will be removed when it is believed that no systems remain that run such versions. All requests for Matlab will be offered the latest version available though at least one if not two previous versions will be maintained for installations where the latest Matlab version may not be compatible with older software.

You might also like to see the section below that deals with Mapping the Matlab Network Installation Folder

Please also see Matlab Symbolic Tool Box Notes PDF

 

Matlab License Management & Activation

The Matlab license allows for its installation and use on any University computer for the purposes of Education and Research. It does not allow for any commercially related work. For which a separate license can be purchased.

The campus license also allows ONLY Payrolled Staff and Postgraduate students (but NOT undergraduates, taught PG's or Emeritus Professors etc) to install Matlab on their own personally owned computers. It is very important that such users carefully read the license conditions displayed during the Matlab installation, which especially does not allow commercial work of any sort and that they understand that in clicking Yes to accept the conditions they become liable for any infringment of those conditions. Such users will also need to obtain an Activation key from a person who is a Mathworks account holder with Activation privileges. Some members of the campus IT support staff have access to Matlab activation. Please consult with your local IT support team, who will require either the computers MAC address or Hard Disk Drive Volume Serial Number.

For Computers on the campus Active Directory system, the latest supported version of Matlab can simply be 'assigned' to the requisite computer. Contact your local IT support team stating the hostname of the computer to have this done. Then all it takes is a restart and you are away. The license references a central license server and this is all handled centrally. Note that Matlab itself is not actually installed on the AD computer, but is resident on a central network drive. This allows updates, such as toolboxes, to be applied centrally and all AD users to see it immediately. Otherwise all machines would have to be gone round to separately. The AD installation installs all the shortcuts and links necessary to allow the local computer to access the Matlab files and run them on the local machine.

Matlab consists of a core application plus numerous toolboxes. The University is licensed to use certain toolboxes under its TAH (Total Academic Headcount) license. Additionally individual groups/users can purchase toolboxes not included in the TAH license for themselves and, using a matlab.options file run on the campus FlexLM license server, limit access to 'authorised' users of these toolboxes.

The campus runs a central server based FlexLM license manager to which campus based Matlab TAH installations access there licenses from. This means that the computer must be connected to the University network. Though this can also be via VPN. Campus Active Directory and networked manual installations of Matlab (2007b onwards) access the campus FlexLM license manager to obtain Matlab and Matlab Toolbox licenses from.

Matlab uses two different types of codes for its manual installations...

PLP

Used by Matlab versions R2007a and below, a Personal License Password (PLP) is a unique string of numbers that allows the installation of MATLAB R2007b and below on a Windows machine. The PLP code defines what toolboxes are available in the current license and thus can be selected for installation.

For example:
18-45604-62230-55767-35043-38698-03622

Beginning with R2008a, PLPs are no longer used to install MATLAB. These installations require either an Activation key or a File Installation Key and for which a license key file is generated. Further details on this are given later in this page.. For campus installations this is handled by using the campus Matlab network license server.

For standalone, especially non networked computer installations, to get your license file and File Installation Key (FIK), you will need to activate MATLAB through mathworks.com. For more details on how to activate the license using the website, see the instructions here:

http://www.mathworks.com/access/helpdesk/help/base/install/pc/brg4dm_-1.html

Activation Key...

If installing and activating a manual Matlab installation using the Internet and the installing user either does not hold a Mathworks user account (for which they would need to create one) or does not hold one with Activation privileges, then this key must be obtained before carrying out the installation.

To obtain this key the installing user must contact the University License coordinator and supply either the MAC Address or HDD Serial Number (Volume Number) of the computer onto which Matlab is to be installed. The key is used in two situations...

  1. When obtaining a standard user Mathworks account in order to perform an installation whilst connected to the Internet.

     

  2. When Activating the installation whilst connected to the Internet.

This key is not required when installing and activating Matlab whilst not connected to the Internet. For this only a File Installation Key and license file are needed.

File Installation Key (FIK)...

This key is required if you are going to carryout a manual installation of Matlab on a computer whilst NOT connected to the Internet. It is used to start an installation when not connected to the Internet.

This is a code can only be obtained by someone with a Mathworks account that has Activation Privileges (Only IT Support Staff) and for which the MAC Address or HDD Serial number of the computer to have the installation carried out on will be required. To activate the installation you will also require a license (.nic) file, which would have been obtained at the same time as obtaining the FIK.

License.dat (network.lic)

A license.dat file is used by Matlab versions R2007 and earlier and allows the Matlab program uses to determine what components (Toolboxes etc) it can run.This file may contain either the individual key codes for each component or a reference to a campus FlexLM matlab license server, on which such a list of key codes exists. For Matlab versions R2007 and earlier, this file is prompted for by the installation and is stored in...

C:\Program Files\MATLAB\R?\bin\win32\license.dat (Where R? is the version)

Matlab versions R2008 and onwards still require a license.dat but this is no longer stored as shown above but asa .lic file stored as...

...\MATLAB\R0##\licenses\license_hostname_345666_R##.lic

This file will contain discrete key codes that can only be run on the computer the installation was activated for.

Where...

...\ Is the initial path leading to the the particular MATLAB installation folder. For local installations this is normally C:\Program Files\
Hostname Is the name of the computer having Matlab installed upon it.
R## Is the name of the Matlab version being installed, e.g. R2008b etc

 

For computers on the campus network the license file need only contain the following text in order to access the FlexLM Matlab network license manager...

SERVER matlablm.bath.ac.uk 832b2fee 19944
USE_SERVER

Stand alone (I.E. non networked) installations will require either a .dat or a .lic, as appropriate for the version, file which contains discrete license keys for each component and which has been configured and issued to run on the computer in question.

 

To carryout a manual installation of Matlab, either on a University or personally owned computer (Staff & PG's only) with it connected to the network and which allows the automatic download of any updated installation files, requires that the user has a Mathworks user account. A person can carryout a manuall installation off of the network but they would require a File Installation Key (FIK) and License file for the requisite computer. There seem to be three types of Mathworks user accounts, please note that the terminology I have used to describe the 'accounts' are my own creation in the absence of a more accurate definition...

  1. License Administrator account: This allows the Mathworks account holder to carryout a full network installation and for the installation to connect to the Mathworks web site and to automatically have it activated against the computers HDD Serial Number (also known as the Volume Number). This account holder can also create Activation keys, which can be used by other users to create a standard Mathworks user account for themselves and to activate installations carried out using the Internet. A License Administrator account holder can also uprate a Standard user account holder to a License Activation Account.

     

  2. License Activation Account: This allows the Mathworks account holder user to carryout a full network installation and for the installation to connect to the Mathworks web site and to automatically have it activated against the computers HDD Serial Number (also known as the Volume Number). It also allows the account holder to obtain a File Installation Key (FIK) and license file, which will allow a Standard account user to carryout an installation with the computer not connected to the network. However, this account type cannot be used to obtain Activation keys.

     

  3. Standard Mathworks Account: This account type allows a normal user to carryout an installation with the computer connected to the network and for it to automatically pickup updated files. However, the user will still require...

    1. If installing and activating using the Internet. Either an Activation Key or File Installation Key and License file will be required to activate the installation.

       

    2. If installing and activating without the Internet then a File Installation Key and license file will be required to complete the activation. For this type of installation, the installing user does not require a Mathworks account.

 

See the section below on How to obtain the necessary license codes...

Matlab Control Groups

Matlab FlexLM (en-matlab.options) Control Groups

The FlexLM license manager allows for the use of a '.options' file, which can be used to limit or control access (either per user or per computer) to various licenses or groups of licenses.
The main campus wide site TAH license does not have an access controls but the Pre-TAH (aladdin) license server does implement an options file in order to limit toolbox access to only those that paid for them or are authorised to use them.

 

Drive V:\Matlab

The Faculty of Engineering (Mech Eng) IT Support Team have a Read Only network drive with which it makes available various files and information. The path to this area is...

\\campus\files\mecheng\Support - Most people map this as Drive V:

Within this area is a folder called Matlab, which contains files and information specific to the use of Matlab in the Department. In particular users might like to note the Matlab Electronic Digests folder (digests) which contains copies of the Monthly Matlab Digests sent by MathWorks.

Use the path above to either map Drive V: (using your campus\username and password) or simply put it into the Address bar of Windows Explorer (for which you may need to enter your campus username as 'campus\username' and your password), then to navigate to the Matlab folder.

Also included in here are recent license.dat files and other information that may be of help to various users. See the Dir_Info.txt file for further information.

Checking the Campus Matlab Network License Status

Map the \\campus\files\mecheng\Support area as explained in the section above and, using Windows Explorer, navigate to the FlexLM folder.

Within this folder you will find a batch program file called: Show_Licenses.bat

In the menu displayed there are currently two Matlab license status options to select from...

Show Matlab (TAH-FlexLM) matlablm - Port 19944
Show Matlab (Pre TAH) aladdin - Port 27001

The first (TAH-FlexLM) is the main campus wide TAH license service to which all new installations of Matlab should be pointing. The second (Pre TAH) is an older Matlab license which covers individually purchased non TAH licensed toolboxes etc.

You should see an output similar to the following...

lmstat - Copyright (c) 1989-2005 Macrovision Europe Ltd. and/or Macrovision Corporation. All Rights Reserved.
Flexible License Manager status on Thu 11/26/2009 14:06

[Detecting lmgrd processes...]
License server status: 19944@matlablm.bath.ac.uk
License file(s) on matlablm.bath.ac.uk: /opt/flexlm/matlab/license.dat:

matlablm.bath.ac.uk: license server UP (MASTER) v11.4

Vendor daemon status (on matlablm.bath.ac.uk):

MLM: UP v11.4

Press any key to to return to the menu...

Which shows that the license is up and running. Depending on who is using what at the time, you may also see lines indication who is using what components.

Matlab R13

Although a very old version and later versions are recommended to be used, there are some instances when R13 has to be used, for example with DSpace or other such third party software not yet able to operate with later versions of Matlab.

To install R13 you must first obtain an R13 SP2 Installation CD or equivalent media. The Installer.exe file is a self extracting ZIP of the installation.

You must have the following (Campus ONLY) Personal License Password (PLP) code available for copying and pasting into the installation process when prompted for it...

13-26465-55970-44686-35053-60719-28231-27802-49014-53629-41099-41621-02037-26141-43214-16401

This PLP code will allow one or more of the following products to be selected and installed...

MATLAB 13
Simulink

Control System Toolbox
Data Acquisition Toolbox
Database Toolbox
Extended Symbolic Math Toolbox
Fuzzy Logic Toolbox
System Identification Toolbox
Image Processing Toolbox
LMI Control Toolbox
Model-Based Calibration Toolbox
SimMechanics
Neural Network Toolbox
Optimization Toolbox
Robust Control Toolbox
Real-Time Workshop
Real-Time Windows Target
Stateflow Coder
Stateflow
Signal Processing Toolbox
Symbolic Math Toolbox
Statistics Toolbox
Wavelet Toolbox

To run R13 against the campus network license file, you will also require a text file named as license.dat with the following contents...

SERVER matlablm.bath.ac.uk 832b2fee 19944
USE_SERVER

When creating this file ensure that you leave at least one blank line following the USE_SERVER line.

The Matlab installation process will prompt you to browse to this file, which it will install to...

C:\Program Files\MATLAB\R13\bin\win32\license.dat

No other form of activation is required.

Matlab R14

Although a very old version and later versions are recommended to be used, there are some instances when R14 has to be used because some third party software is not able to operate with later versions of Matlab.

To install R14 you must first obtain an R14 SP2 (With Updates) Installation CD or equivalent media.

You must have available a valid Personal License Password (PLP) code for copying and pasting into the installation process when prompted for it. The following code, although from the Matlab R2007a TAH license, will allow you to choose toolboxes for installation that will be covered by the campus license file...

17-21780-50681-09746-45754-65148-11153-48818-29801-05408-61403-17782-35394-09725-51499-36031-46454-32059

Note that PLP codes are no longer used or issued from R2008a onwards.

To run R14 against the campus network license file, you will also require a text file named as license.dat with the following contents...

SERVER matlablm.bath.ac.uk 832b2fee 19944
USE_SERVER

When creating this file ensure that you leave at least one blank line following the USE_SERVER line.

The Matlab installation process will prompt you to browse to this file, which it will install to...

C:\Program Files\MATLAB\R14\bin\win32\license.dat

No other form of activation is required.

Matlab R2006a

Matlab 2006a is a non TAH license version and is available for installation either via Active Directory MSI (via your local IT support team) and which is installed directly into the local computer and operates using the campus FlexLM license manager or manually via CD.

NOTE That this version is no longer offered for installation or supported, though a few older systems are still running it. New requests for Matlab will be issued with the latest supported version.

The R2006a installation requires a valid PLP code in order to start the installation and be able to select the requisite toolboxes. For which the following R2007a TAH code should offer sufficient toolbox choices...

17-21780-50681-09746-45754-65148-11153-48818-29801-05408-61403-17782-35394-09725-51499-36031-46454-32059

For a list of toolboxes currently covered by the TAH and other licenses please see the Toolboxes section within this page.

You will also need a requisite license.dat file to hand when prompted for one by the installation routine.

The license.dat file may either contain a reference to the campus license server (if the computer is being used on the campus network) or contain a list of discrete license codes if the computer is being used standalone, e.g. a laptop.

 

For an installation on a campus networked computer the license.dat file may contain...

SERVER matlablm.bath.ac.uk 832b2fee 19944
USE_SERVER

 

For an installation on a non networked computer (E.G. a laptop)...

Using another computer attached to the campus network, you may obtain a copy of the relevant standalone license.dat file by...

Either Navigating to...

https://isecure.bath.ac.uk/securedownloads/Repository.aspx?id=MATLAB

...and click on the passcode.txt file. You will need to scroll down and highlite all lines between the...

# BEGIN­­­­­­cut here­­­­­­CUT HERE­­­­­BEGIN

# END­­­­­­cut here­­­­­­CUT HERE­­­­­END

It does not matter if you include or not the #BEGIN and #END lines as these are comments anyway. Paste this into a text file called license.dat and keep for when requested by the installation.

Or... using Windows Explorer and entering the following path into the Address panel...

\\campus\files\mecheng\Support\Matlab\TAH-license.dat

Please note that the current standalone (2007a) TAH license file will expire on 01-Jul-2010

Matlab will install the file, renaming it to license.dat anyway, to...

C:\Program Files\MATLAB\R2006a\bin\win32\license.dat

 

In addition to the TAH license, which anyone can access, there are a few toolbox licenses which are controlled using a network license server (FlexLM) and for which the user must be a member of the relevant toolbox license control group within the license options file. To access these licenses the computer MUST be connected to the University network in order to access the license server. For convenience, these non TAH FlexLM based licenses have been added to the TAH license.dat file. The Matlab software will thus use a TAH license for any toolbox that falls within its scope, or for a non TAH license, will use the relevant license.dat file line to contact the license server for authorisation.

Matlab R2006b

Matlab 2006b is a non TAH license version, accessing the campus FlexLM license server for all its licenses. It is not available on the campus central network server as is the case for 2006a. There is a Mech Eng full AD MSI installation available. However, 2006a was not used much within Mech Eng but information for it is included here for completeness...

NOTE That this version is no longer offered for installation or supported, though a few older systems are still running it. New requests for Matlab will be issued with the latest version (Currently 2009b).

Whilst not available as a central network install, it could be installed manually on a local PC including an Active Directory PC. Note that the ONLY rational for using 2006b was where it supported something that 2006a did not, At the time, the only reason for requiring 2006b was that it alone supports the SimHydraulics toolbox, which 2006a did not. Though this was put right in 2007a

However, the installation was not without problems and the point of this section is to warn of those problems and how to overcome them. (Though largely superseded by later versions now)

  1. Login to the PC as the local Administrator and carry out the installation as normal using the installation CD's.

     

  2. Once installed Matlab MUST be run at least once by the Administrator otherwise if first run by a user it will produce the following error...

    Microsoft Visual C++ 2005 Redistibutable
    ALLUSERS property is not 1 - this MSM cannot be used for a per-user or fallback-to-per-user install

     

     

  3. At this point Matlab can now ONLY be run either by the Administrator or a locally created (even limited) account without error, because if an Active Directory user (with roaming profile) runs Matlab it will produce the following errors within the Matlab command prompt window...

    Exception in thread "Thread-8" java.lang.NoClassDefFoundError
    at com.mathworks.mde.editor.IDEEditor.<init>(IDEEditor.java:99)
    at com.mathworks.mde.editor.IDEEditor.getInstance(IDEEditor.java:66)
    at com.mathworks.mde.editor.EditorServices.loadBuiltinEditor(EditorServices.java:499)
    at com.mathworks.mde.editor.EditorServices.loadEEIEditor(EditorServices.java:530)
    at com.mathworks.mde.editor.EditorViewContainer.<clinit>(EditorViewContainer.java:165)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.mathworks.mde.desk.StartupClassLoader.callClassForName(StartupClassLoader.java:304)
    at com.mathworks.mde.desk.StartupClassLoader.loadClass(StartupClassLoader.java:282)
    at com.mathworks.mde.desk.StartupClassLoader.access$900(StartupClassLoader.java:27)
    at com.mathworks.mde.desk.StartupClassLoader$LoadThread.run(StartupClassLoader.java:271)
    >>

    After which a secondary error will also be produced if the user wishes to run the MEditor from (Matlab) Start \ Desktop Tools \ Editor ...

    ??? Error using ==> edit>handleError
    Failed to open editor. Load of Java classes failed.
    >>

    This is caused because Matlab appears to be attempting to access the users profile area using some kind of 'absolute' path that does not take into consideration the redirected roaming profile and hence it cannot create the folders that it requires for the individual users' use of Matlab. The path that it is trying to access is...

    C:\Documents and Settings\username\Application Data\Mathworks\MATLAB\R2006b

    Which of course does not exist because the users' profiles are under H:\Profiles_Do_Not_Delete

  4. However, there is a fix to get round this, and remember that this only applies to an AD User on an AD machine...

    • The user must be logged into the relevant PC as themselves.

       

    • Using Windows Explorer, Navigate to the folder...

      H:\Profiles_Do_Not_Delete\Application Data

      ...and create a further series of folders to produce...

      H:\Profiles_Do_Not_Delete\Application Data\Mathworks\MATLAB\R2006b
    • Then run Matlab as normal

Matlab R2007a (TAH)

Unlike previous versions of Matlab, 2007a (and above) now use a campus TAH license model.

Matlab R2007a can be installed on an Active Directory machine by your local IT administrator using an MSI. The MSI will install 2007a directly into the local computer and access the campus network license. It may also be manually installed and use either a TAH encoded license.dat file that contains all of the discrete license keys (for use on non networked installations such as laptops) or simply contains pointers to the campus license server (for networked installations).

NOTE That this version is no longer offered for installation or supported, though a few older systems are still running it. New requests for Matlab will be issued with the latest supported version.

The R2007a installation requires a valid PLP code in order to start the installation and be able to select the requisite toolboxes. For which the following R2007a TAH code should offer sufficient toolbox choices...

17-21780-50681-09746-45754-65148-11153-48818-29801-05408-61403-17782-35394-09725-51499-36031-46454-32059

For a list of toolboxes currently covered by the TAH and other licenses please see the Toolboxes section within this page.

You will also need a requisite license.dat file to hand when prompted for one by the installation routine.

The license.dat file may either contain a reference to the campus license server (if the computer is being used on the campus network) or contain a list of discrete license codes if the computer is being used standalone, e.g. a laptop.

 

For an installation on a campus networked computer the license.dat file may contain...

SERVER matlablm.bath.ac.uk 832b2fee 19944
USE_SERVER

 

For an installation on a non networked computer (E.G. a laptop)...

Using another computer attached to the campus network, you may obtain a copy of the relevant standalone license.dat file by...

Either Navigating to...

https://isecure.bath.ac.uk/securedownloads/Repository.aspx?id=MATLAB

...and click on the passcode.txt file. You will need to scroll down and highlite all lines between the...

# BEGIN­­­­­­cut here­­­­­­CUT HERE­­­­­BEGIN

# END­­­­­­cut here­­­­­­CUT HERE­­­­­END

It does not matter if you include or not the #BEGIN and #END lines as these are comments anyway. Paste this into a text file called license.dat and keep for when requested by the installation.

Or... using Windows Explorer and entering the following path into the Address panel...

\\campus\files\mecheng\Support\Matlab\TAH-license.dat

Please note that the current standalone (2007a) TAH license file will expire on 01-Jul-2010

Matlab will install the file, renaming it to license.dat anyway, to...

C:\Program Files\MATLAB\R2006a\bin\win32\license.dat

In addition to the TAH license, which anyone can access, there are a few toolbox licenses which are controlled using a network license server (FlexLM) and for which the user must be a member of the relevant toolbox license control group within the license options file. To access these licenses the computer MUST be connected to the University network in order to access the license server. For convenience, these non TAH FlexLM based licenses have been added to the TAH license.dat file. The Matlab software will thus use a TAH license for any toolbox that falls within its scope, or for a non TAH license, will use the relevant license.dat file line to contact the license server for authorisation.

Matlab R2008a/b

This version does NOT include the Mathworks Symbolic Maths toolbox but does include the MapleSoft - Symbolic Maths and Extended Symbolic Maths toolboxes. Note that it is not possible to run the MapleSoft and Mathworks Maths toolboxes on the same Matlab version.

The 2008 license management differs from 2007a, which was basically a standalone (with the addition of a few network license lines) license file and did not need to access a network license server, in that it can be activated against the campus Matlab FlexLM network license manager or, for manual installations (NOT AD) can be manually activated via the Mathworks web site by someone with a Mathworks web user account that has Activation privileges.

Matlab 2008 can be installed in one of three ways...

  1. Via Active Directory. For computers on AD the software can be assigned to the computer by the local IT support team. The installation is in fact mearly a set of 'pointers' to the central campus application disk. Thus although Matlab is actually run on the local computer, all of its executables and other files are held on a central campus disk. This does have the advantage that should there be any updates to the Matlab installation (such as a new toolbox etc), this can be carried out centrally and everyone sees the updates. This installation will access the main University Matlab FlexLM (TAH) network license manager.

    Using Matlab from an AD network installation (as oppossed to it being available on the local disk) does mean that you may need to be a bit more selective as to how you setup your Matlab environmental variables, especially those containing Paths. Sadly as every users use of Matlab is different, it is not possible to go into further details but if you find that something is not connecting to a Matlab part then look at your Matlab environment variables.

     

  2. A manual installation on a University network machine. Such an installation can either be pointed to the campus Matlab FlexLM network license manager or be manually activated via the Mathworks web site by someone with a Mathworks user account that has Activation privileges.

     

  3. A manual installation on a non networked machine. The MAC address or HDD Serial Number must then be recorded and used to obtain a standalone Activation key from the Mathworks web site by someone with a Mathworks user account that has Activation privileges.

If you wish to know more about the TAH license schema then please see the following web page provided by BUCS but note that you must enter your campus username and password to enter this BUCS web page...

Matlab Total Academic Headcount (TAH) Site :License 2007/2008

If you wish to view the files installed in the network istallation of Matlab, as used by Active Directory PC's, then map the following path to a drive letter using Windows Explorer...

\\campus\files\\Public\Applications\MATLAB\version (E.G. R2008a, R2008b, R2009b etc)

For Campus Administrators, you may see more information about the Active Directory installation via the following web page, scroll down to the Mathworks section then click on the applicable version of Matlab...

http://swirl.campus.bath.ac.uk/activedirectory/Software_Installation/packages/public.msi

Note that 2008a,b requires "VC++ 2005 Redistribuatbles SP1". You should uninstall all instances of
"VC++ 2005 Redistributables" and replace with SP1 - it is backward compatible.

Thus For Computers on the campus Active Directory system, this software can simply be 'assigned' to the requisite computer. Contact your local IT support team stating the hostname of the computer to have this done. Then all it takes is a restart and you are away.

The lastest campus version of Matlab is also available on the Terminal Services machines and Library PC's.

This version and all future versions use the Mathworks Symbolic Maths toolbox but does NOT run the Maplesoft based toolboxes - Symbolic Maths and Extended Symbolic Maths. It is not possible to run the MapleSoft and Mathworks Maths toolboxes on the same version.

For an example of a manual installation, click <here>

Matlab R2009b

Matlab 2009b is currently available on...

  • University Active Directory (AD) computers. To have it installed please request this through your local IT Support team. This accesses the campus network installation and campus FlexLM license server.

     

  • Gigaterms Terminal Services. Available via the Start / All Programs / Terminal Servers link on a Mech Eng AD system.

     

  • For University networked computers not on AD, these can have a manual installation from the secure downloads site and be made to access the campus FlexLM license server.

     

  • For non networked systems (E.G. Laptops) these can have a manual installation from the secure downloads site and will require activation through the Mathworks site by an IT supporter with an Activation type Mathworks user account. For which MAC address or HDD Serial Number.

If you wish to know more about the TAH license schema then please see the following web page provided by BUCS but note that you must enter your campus username and password to enter this BUCS web page...

Matlab Total Academic Headcount (TAH) Site :License 2007/2008

If you wish to view the files installed in the network istallation of Matlab, as used by Active Directory PC's, then map the following path to a drive letter using Windows Explorer...

\\campus\Applications\MATLAB\version (E.G. R2008a, R2008b, R2009b etc)

For Campus Administrators, you may see more information about the Active Directory installation via the following web page, scroll down to the Mathworks section then click on the applicable version of Matlab...

https://wiki.bath.ac.uk/display/ADdocs/Packages

Note that R2009 requires "VC++ 2005 Redistribuatbles SP1". You should uninstall all instances of
"VC++ 2005 Redistributables" and replace with SP1 - it is backward compatible.

For Computers on the campus Active Directory system, this software and its prerequisites can be 'assigned' to the requisite computer via the AD system. Contact your local IT support team stating the hostname of the computer to have this done. Then all it takes is a restart and you are away.

The lastest campus version of Matlab is also available on the Terminal Services machines and Library PC's.

This version and all future versions use the Mathworks Symbolic Maths toolbox but does NOT run the Maplesoft based toolboxes - Symbolic Maths and Extended Symbolic Maths but uses MuPad. Please also see Matlab Symbolic Tool Box Notes PDF. It is not possible to run the MapleSoft and Mathworks Maths toolboxes on the same version.

Matlab R2009 Documentation

For an example of a manual installation, click <here>

PLEASE NOTE: Matlab R2009b may not run on a computer which is running VPN or 3G wireless network, but should run if these are turned off. For more information please see FAQ's below

Student Version R2009a

Undergraduate students enrolled in regular courses who wish to have Matlab installed on their own personally owned computers (Windows, Linux and Mac) can purchase a Student Version (currently V2009a) through most major bookstores. This version includes...

MATLAB
Simulink
Symbolic Math Toolbox
Control System Toolbox
Signal Processing Toolbox
Signal Processing Blockset
Statistics Toolbox
Optimization Toolbox
Image Processing Toolbox

Matlab Images on the BUCS Secure Download site

BUCS maintain a Secure Downloads web site which allows Payrolled Staff and Postgraduate students to use their campus username and password to enter and access the Matlab ISO images for downloading. If you cannot login then you are not authorised to access this software.

The Matlab downloads are actually .iso files, which are normally used to create a CD/DVD from. Normally one would download the .iso image file, then using a proprietry piece of software (Such as MagicISO) write this to a CD or DVD. Then this can be used to carry out the Matlab installation.

However, it is also possible to download and install a freeware piece of software that allows you to use the .iso file as if it were a virtual CD/DVD and thus carryout an installation directly from it. Check out the MagicISO Virtual CD/DVD-ROM Overview web page. Note though that this software can only be installed by the computers Administrator, as otherwise you will receive errors saying that it cannot access certain files.

Thus to download and install Matlab from this site...

  1. Using a web Browser (IE8 or Firefox) Navigate to BUCS Secure Downloads and attempt to login to it. Assuming it lets you in...

     

  2. Click on the Available Downloads link found in the left hand menu.

     

  3. Select MATLAB from the list of software.

     

  4. Here you will see a list of ISO images. Select the one you require. E.G. 2009bWin32Win64.iso and download it.

     

  5. Either use the MagicISO Virtual software to access the ISO file as a pseudo CD player or create an installation CD/DVD (as required).

     

  6. You will need to have the requisite installation / activation codes. See Obtaining the Necessary License Codes section below...

     

  7. For an example installation, see the Manual Installation description below.

IMPORTANT NOTES...

  • ISO Images greater than 4GB CANNOT be downloaded from the BUCS secure web site by Internet Explorer 7 or below, which is why you cannot download Matlab 2008b or 2009b, unless using IE8 or Firefox.

     

  • Unless you have exFAT available on your computer, you cannot write a file greater than 4GB to a FAT32 USB memory stick. A USB memory stick formated using exFAT (sometimes also referred to as FAT64) can handle file sizes of upto 16GB.

     

  • The ISO images can be installed when connected to the network (Automatically) ONLY by someone with a Mathworks user account. To setup an account a user must have first obtained an Activation key from a Mathworks account holder with Activation privileges. This is only granted to IT support staff. For this the MAC Address or HDD Serial Number is required.

     

  • The ISO images can be installed with the computer NOT connected to the network (Manually) ONLY if a File Installation Key has been previously obtained from a Mathworks account holder with Activation privileges. This is only granted to IT support staff. For this the MAC Address or HDD Serial Number is required.

See the section below on How to obtain the necessary license codes...

Users - How to Obtain the Necessary License Codes...

This section is for the benefit of users (Staff/PG's) who are wanting to obtain a license code in order to install and run Matlab on their personal computer (laptop). Undergraduates cannot have a personal copy of Matlab using the University license and must either use the Terminal Service computers to remotely access Matlab or purchase a student copy of Matlab.

Having obtained the necessary installation media (E.G. Secure Downloads) , users wishing to install the software on their own personally owned computer (Payrolled Staff and Postgraduates only) will require the necessary installation and activation codes for which they will need to supply a HOSTID, which for Windows based computers is either the MAC Address (normally the LAN address or Wireless address will do) or Hard drive (C:) volume serial number (which changes if the HDD is ever replaced or reformatted).

IT Support will require the following information, sent via the BUCS Help Page (RT), in order to obtain the necessary codes...

  1. The HostID, which can be either the Network MAC address or Hard Disk Drive serial number of the computer it is to run on. We recomend that you use the LAN MAC address if at all possible.
  2.  

  3. The Operating system you are running on the computer you wish to install Matlab on.
  4.  

  5. The version of Matlab for which you require a license.

The following gives more information, though sadly like most things related to Matlab, they are never straight forward :(

To obtain the HOSTID MAC Address or Hard Disk Drive (HDD) Volume Serial Number...

  • Open up a Windows Command Prompt (How To Do This - 1 / How To Do This - 2)

     

  • MAC Address: Type the command ipconfig /all and press the return key. Look for the line that shows something like the following. The number is shown as six hexadecimal pairs and is specific to each machine...

    Physical Address. . . . . . . . . : 00-1C-C0-40-73-24       (NOTE: Example address only)

     

  • HDD S/N: Type the command Vol and press the return key. The number will show as something like 1F95-08B7. Note that this number will change if the HDD is reformated. Should the disk be reformatted then another Matlab license file will need to be obtained, or the Volume number edited (Not for the faint hearted!!).


Now you need to decide upon the installation method you wish to employ (not forgetting to supply the HOSTID as explained above and which version of Matlab you are going to install)...

  1. If you do not have a current Mathworks user account and want to perform the installation whilst connected to the Internet, you will require an Activation key. Which will need to be obtained from a member of BUCS staff with License Administration privileges. Contact the University's Software Licence Manager.
  2.  

  3. If you already have a Mathworks user account and want to perform the installation whilst connected to the Internet. You will need a File Installation Key and License file. Which will need to be obtained from a member of IT Support staff with License Activation privileges. Contact your local IT support team. and ask for a Matlab File Installation Key and License file.
  4.  

  5. If you wish to perform an installation whilst not connected to the internet, then you will need a File Installation Key and License file.Which will need to be obtained from a member of IT Support staff with License Activation privileges. Contact your local IT support team. and ask for a Matlab File Installation Key and License file.

Having previously requested a license via the University IT support services, to renew the license yourself at a later date and assuming that you still have University email account, go to the Mathworks Technical Solutions page where it will tell you how to do this. You will NOT be able o do this if you have left the University and no longer have a University email address.

Note that if the computer is a University owned computer then you should contact your local IT support team. If it is on Active Directory then Matlab can be assigned via AD. If it is not on AD but on the University network, then the University license manager can be used.

 

IT Staff - How to Obtain the Necessary License Codes for a user...

This section is for the benefit of Mathworks License Administrators and Activation account holders (I.E. IT Support staff only) and is included here for completenes and reference, standard Mathworks user accounts will not be able to do this...

To obtain a File Installation Key and License file...

  1. Navigate to and login to the Mathworks License Center using an account with license Activation privileges...

    https://www.mathworks.com/licensecenter/

     

  2. Click on the 345666 license

     

  3. Click on the Activation and Installation tab

     

  4. Click on the Activate button (On right next to the Search button)

     

  5. At the Activate panel, Select 'I have the host ID' and click Continue
    Select from the following...

     

    Release to Activate (Default is currently R2009b)
    Operating System / Hardware Platform Select from Linux, MAC, Solaris, Windows
    Host ID Enter either the machines MAC address (normally the LAN but can be wireless) or the Hard Drive Volume Serial Number
    Activation Label Enter a meaningful label upto 25 characters.
    For example RT#612345 (username), which should help reference the activation back to the user.

    Click Continue

  6. Select to Download the license file, which should then open up in your default Text editor (Notetab etc).

     

  7. For reference and user convenience, Add the File Installation Key and activation label to the license file by...

    The top of the issued license file should look like...

    # BEGIN--------------BEGIN--------------BEGIN
    # DO NOT EDIT THIS FILE. Any changes will be overwritten.
    # MATLAB license passcode file.
    # LicenseNo: 345666
    #

    To this append the following commented lines ahead of the first INCREMENT MATLAB MLM line...

    # File Installation Key: <into this bit paste the displayed FIK replacing this bold/italic text>
    #
    # Activation Label: RT#612345 (abc123) <or whatever it will actually be>

     

NOTE: To obtain an Activation key requires a person with a Mathworks License Administration enabled user account. Then an Advanced button will be displayed next to the Activate and Search buttons. No further details of this procedure are available at the moment.

Manual Installation of Matlab R2008, R2009

This section describes a manual installation of either Matlab R2008 or R2009 and its activation.

Note that earlier Matlab versions had simpler activation methods, you simply used a PLP code and supplied it with a valid license.dat file that was either a standalone set of license keys or for networked computers contained pointers to the campus license server.

Matlab versions 2008 and beyond have a slightly more complex installation and activation methodology depending on...

  • Whether or not the installing user has a Mathworks user account and whether that account allows them to automatically activate the installation or whether they must obtain the relevant activation files.

     

  • Whether the installation and activation will be carried out whilst connected to the Internet or not connected to the Internet.

     

  • If you wish a manual installation to access the campus license server.

Prerequisites to run a manual installation (I.E. NOT Active Directory)...

  • The user MUST have local Administration rights to the computer they wish to install Matlab on.

     

  • For users (installers) who have a Mathworks License Activation type account, they can either obtain a File Installation Key and license file for a manual non Internet connected installation, or do the installation directly on the Internet to automatically update installation files and activate the installation.

     

  • For users (Payrolled Staff and PG's only) wanting to install Matlab 2008 and above on their own personal computer. They must apply to their local IT support team via RT (supplying either the MAC address or HDD Serial Number of the computer to which the installation is to be applied) for either...
    • An Activation code if they do not currently have a Mathworks user account and wish to carryout an installation and activation whilst connected to the network, for which they will need to create a Mathworks account for themselves.

     

    • For a non network installation, they must apply for a File Installation Key and license file.
  • For users who do not currently have a Mathworks user account and want to carryout a manual installation and activation on a University computer whilst it is connected to the Internet...
    • They will need to apply to their local IT support team via RT (supplying either the MAC address or HDD Serial Number of the computer to which the installation is to be applied) for an Activation Key. This will allow them, during the installation phase, to register with Mathworks to create a user account and then to activate the installation. However, Please note that normally your local IT support team, especially if the computer is on Active Directory, will normally carryout this installation for you on a University owned computer.
  • For users who already have a (standard) Mathworks user account and want to carryout a manual installation and activation on a University computer whilst it is connected to the Internet...
    • They will need to to apply to their local IT support team via RT (supplying either the MAC address or HDD Serial Number of the computer to which the installation is to be applied) for a license file. This is a license.dat file but which Matlab installs as a .lic file.
  • For users who want to carryout a manual installation and activation on a University computer whilst not connected to the network...
    • They will need to to apply to their local IT support team via RT (supplying either the MAC address or HDD Serial Number of the computer to which the installation is to be applied) for a File Installation Key and license file. This is a license.dat file but which Matlab installs as a .lic file.

      The File Installation Key will be used to start the (off Internet) installation, whilst the license file will be used to activate the installation.

     

For Matlab R2008 and onwards, the installation process has two start points, the default one shown as (*)...

(*) Install Automatically using the Internet... (This will check for any updated installation files)

Logon to the Mathworks web site - OR...
Create a Mathworks user Account (For which an Activation key is required)

Read and Accept the License Conditions - AND...
Then continue to - Installation Type (Typical, Custom)

(  ) Install Manually without using the Internet... (Does not check for any updated installation files)

Input the File Installation Key (FIK) (Must have been previously obtained)
Browse to the associated license file (Must have been previously obtained)

Read and Accept the License Conditions - AND...
Then continue to - Installation Type (Typical, Custom)

 

 

This then is an example of a 2008b manual installation whilst connected to the network...

  1. Login to the local computer using the local Administrator account.

     

  2. Obtain the installation media, either a CD/DVD or an ISO file from the BUCS secure downloads site as explained in the previous section.

     

  3. Mount the media, either in a DVD player or using the MagicDisc virtual DVD player for ISO files.

     

  4. If the Matlab installation program does not automatically run then navigate to and run the Setup.exe program.

     

  5. At the Installer Welcome screen, you can choose to...

    (*) Install Automatically using the internet (recommended)
    (  ) Install Manually without using the Internet

    The first (default) option: (Computer connected to the Internet) If the user has either an Adminstrator or Activation type Mathworks account, then they can carryout the installation and it will automatically obtain any installation file updates and automatically activate the installation (FIK & License file). However, If the user has only a standard account then they must apply for a license file and if they do not have a Mathworks account at all, they will require an Activation Key to create an account in order to access a license file.

    The second option: (Computer NOT connected to the Internet) For which no automatic updates will be available to the installation. A File Installation Key and License.dat file will need to be obtained by the installer from person who holds a Mathworks user account with Activation Privileges and for which either the MAC address or HDD Serial Number (Volume Number) of the computer will be required.

    For the purposes of these instructions, it will be assumed that you have selected the first (default) option and the computer you are installing Matlab on is currently connected to the Internet and you obtained the necessary activation and license files from a Mathworks Administration or Activation user account holder. You will then be required to logon to the Mathworks web site or, using an Activation key, create an account that will allow you to logon.

    Click Next to accept the default choice

     

  6. At the License Agreement screen, Select Yes to accept the terms and click Next

     

  7. At the MathWorks Account screen...

    If you have an exisiting Mathworks (Matlab) account, then enter your email address and password. NOTE: This is NOT your campus login details but one you have previously used to setup a Mathworks login.

    If you do not have an account then you must choose the option to create one. You MUST use your University email address (E.G. A.N.Other@bath.ac.uk), as it is the bath.ac.uk that permits you access to the University license. You will, as explained above, require an Activation key in order to create a Mathworks login account.

    Please note that whilst having an account with MathWorks (Matlab) allows one to install using the Internet and thus pick up the lastest installation files, it does not necessarily mean that you can activate the installation. Only Mathworks Activation type account holders configured through the University with this level of access can activate installations and obtain the necessary license codes automatically.

    Assuming you have managed to login to the Mathworks web site...

     

  8. At the License selection screen, you will see two choices...

    (*) Select from a possible list of licenses

    ( ) Enter an Activation key

    Using the first option, Choose the license under which the installation is to proceed.

    Some account holders, who registered using a bath.ac.uk email address, may possibly see more than one license listed. Normally only one will be available and this will most likely be: 345666 BathTAH_General, which is the campus license. Highlight this and Click Next

    Click Yes if prompted to download new products (Only on Internet connected installation)

    NOTE: You may receive a 5016 error regarding expired maintenance. This may apply to Toolboxes no longer in use, simply clear this error and continue.

     

  9. At the Choose Installation Type screen...

    You are presented with two options...

    (*) Typical (default selection)
    (  ) Custom

    For most users, Typical is the right choice. Custom allows one to modify certain elements of the installation including; Products, File Permissions, Shortcuts and File type associations.

  10. If you chose Typical, then at the following...

    You will be prompted with the following default installation path...

    C:\Program Files\MATLAB\R200##

    Where ## is the actual version you are installing. You may change this path if you wish.

    Click Next to accept the path

    If it (or whatever you wish to set it at) does not exist you will be prompted to have it created.

     

  11. If you selected Custom, then you will see the following prompts...

     

    • Specify Installation Path screen...

      The default is; C:\Program Files\MATLAB\R2008a

      If it (or whatever you wish to set it at) does not exist you will be promted to have it created.

       

    • At the Product Selection screen...

      You are presented with a complete list of all packages available within the University license. You can choose to install all of them, some 4GB's worth, or if you know what you are doing and don't want them all, then you can deselect those you do not want.

      Click Next

       

       

    • At the Installation Options screen, you may select or deselect the following...

      To Set permissions of installed files to Read-only (useful for installations onmapped or shared drives...)

      To Add Matlab short cuts to the Desktop and/or Program Folders on the Start Menu

      To Associate file types with this application (.m, .fig, .p, .mat, .mdl and .mexw32)

      Click Next

  12. At the Confirmation Screen, click Install

     

  13. At the File Extension Warning screen...

    The installation routine will display a number of file extensions to which it would like to associate Matlab with. You may choose to accept all or some or not accept as you think fit. The normal course of action is to click on Yes to all.

     

  14. At the Product Configuration notes screen...

    Note the following information...


    1. To configure Real-Time Windows Target you must type rtwintgt -setup in a MATLAB command window.

       

    2. Run mbuild -setup from MATLAB before using MATLAB Compiler or builder products. This command sets up the C/C++ compiler to be used with MATLAB Compiler and builder products to create deployable applications/components.

      If this installation was carried out with the computer not connected to the network, then you may see the following two notes. However, if you installed whilst connected to the network, the installer will most likely have updated these automatically.

       

    3. There are updated products available.

      When you have finished installing, go to www.mathworks.com to get your updated products. The following products have newer versions available on the Web site:

      Simulink
      Fixed-Point Toolbox
      Image Processing Toolbox
      Model-Based Calibration Toolbox
      Real-Time Workshop
      Real-Time Workshop Embedded Coder
      Signal Processing Toolbox
      Stateflow
      Stateflow Coder
      Symbolic Math Toolbox

       

    4. There are new products available.

      When you have finished installing, you can go to www.mathworks.com to download the following products:

      SimElectronics

    Click Next

     

  15. At the Installation Complete screen, select to...

    [*] Activate Matlab

    You might also see...

    [  ] Delete downloaded temporary files (571mb) in C:\Program Files\MATLAB\R2008a\Archives

    Click Next to proceed to activate the installation. Matlab cannot be used until it has been Activated.

     

     

  16. At the Activation Welcome screen, click Next

    Now this is where things get slightly complicated depending on whether you are installing this whilst connected to the network, Installing it whilst not connected to the network, have a Mathworks user account with Activation privileges or are going to point the application to the campus network (TAH) license server.

    • If you carried out this installation whilst connected to the network and with a Mathworks user account with Activation privileges, then the installation will have automatically activated using the computer hard drive serial number.

       

    • If you carried out the installation whilst connected to the network but with a standard Mathworks user account, then you will need to input an Activation key obtained from the Mathworks web site by a Mathworks account holder with Activation Privileges. You will also need a license.dat file obtained at the same time as the Activation key, then browse to the downloaded license.dat file.

      The license file will be installed to...

      ...\MATLAB\R200##\licenses\license_hostname_345666_R200##.lic

      ...as noted below.

       

       

       

    • If you carried out this installation whilst not connected to the network you will need a license.dat file obtained at the same time as the Activation key by a Mathworks account holder with Activation privileges, then browse to the downloaded license.dat file.

     

    NOTE: If you abort from the activation routine, when you run Matlab next it will automatically prompt you to activate it using any of the methods shown above.

     

  17. At the Confirm Activation Settings screen, Click Activate

     

  18. At the Activation Complete screen...

    [*] Start MATLAB

    Click Finish

 

It might be remembered that when activation is made via the Mathworks web site that the license file is not stored in the normal way, as per earlier Matlab versions...

...\MATLAB\R200##\bin\win32\license.dat

Which is normally used for the campus FlexLM license access and in some local installations is a file containing discrete key codes.

But is stored thus...

...\MATLAB\R200##\licenses\license_hostname_345666_R200##.lic

This file will contain discrete key codes that can only be run on the computer the installation was activated for.

Where...

...\ Is the initial path leading to the the particular MATLAB installation folder. For local installations this is normally C:\Program Files\
Hostname Is the name of the computer having Matlab installed upon it.
R200## Is the name of the Matlab version being installed, e.g. R2008b etc

 

If you wish to activate the installation against the University's Matlab network license, then you can manually edit the license file to contain only the following lines...

SERVER matlablm.bath.ac.uk 832b2fee 19944
USE_SERVER

You can in fact, if you want to, completely remove the activated license file altogether and replace it with virtually any filename ending in a .lic extension. For example 'network.lic together with the above contents'.

However, what you cannot seem to do is use the Activation routine to browse to a file containing only the above two lines. If you do then it will proclaim the file as being invalid!!

Toolboxes

Whilst there used to be three main licensing schema's in use on campus…

Pre 2007a: This used a license.dat file and PLP codes to install toolboxes

TAH #1: This had many toolboxes covered by a site license but other more specialised opnes covered by individual purchases and licenses.

TAH: From 2008a onwards the campus uses a full TAH license which covers just about every toolbox required on campus.

We will no longer discuss TAH #1 and Pre 2007a, as these are now few and far between. Any systems running these will have to make 'special' arrangements through the campus Site License Manager for license files.

The table below shows what toolboxes are available to users of 2008a and above. Currently (Summer 2010) and whilst there are many reasons for needing to stick to an older version, such as older software compatibility, users should ideally be using 2009a/b and thinking of moving onto to 2010a.

Toolbox (Correct 03/06/2010) License Count Comments
License Expiry is 01/06/2011 unless otherwise stated
     
Matlab 6311  
Simulink 6311  
Bioinformatics Toolbox 6311  
Communications Blockset 6311  
Communications Toolbox 6311  
Control Systems Toolbox 6311  
Curve Fitting Toolbox 6311  
Data Acquisition Toolbox 6311  
Database Toolbox 6311  
Econometrics Toolbox 6311  
Filter Design Toolbox 6311  
Financial Derivatives Toolbox 6311  
Financial Toolbox 6311  
Fixed Point Toolbox 6311  
Fuzzy Toolbox 6311  
Global Optimization Toolbox 6311  
Image Processing Toolbox 6311  
Instrument Control Toolbox 6311  
Matlab Builder JA 6311  
Matlab Builder NE 6311  
Matlab Compiler 6311  
Mapping Toolbox 6311  
Model-Based Calibration Toolbox 6311  
Neural Network Toolbox 6311  
Optimization Toolbox 6311  
Parallel Computing Toolbox 6311 For use on the HPC
Partial Differential Equation Toolbox 6311  
Real-Time Windows Target 6311  
Real-Time Workshop 6311  
RT Workshop Embedded Coder 6311  
Robust Control Toolbox 6311  
Signal Processing Blockset 6311  
Signal Processing Toolbox 6311  
SimBiology 6311  
SimDriveline 6311  
SimElectronics 6311  
SimHydraulics 6311 This toolbox requires at least Matlab 2006b to be installed because of a dependancy.
SimMechanics 6311  
SimPowerSystems 6311  
Simscape 6311  
Simulink 3D Animation 6311  
Simulink Control Design 6311  
Simulink Design Optimization 6311  
Spline Toolbox 6311  
Stateflow 6311  
Stateflow Coder 6311  
Statistics Toolbox 6311  
Symbolic Maths Toolbox 6311  
System Identification Toolbox 6311  
Video & Image Processing Blockset 6311  
Wavelet Toolbox 6311  
xPC Target 6311 Available for 32Bit systems only.


Displaying Installed Toolboxes

Displaying Currently Installed or In-Use Toolboxes from within Matlab

  • Run Matlab
  • In the Matlab window, Navigate to the bottom left corner and click on Start / Toolboxes
  • Here you will see a list of all currently installed toolboxes, also look under the Simulink sub menu.

It is also possible to use Matlab to show you what toolboxes you are either currently accessing or are available in the license schema using the Matlab 'license' function (See Matlab's own Help information for further details). Note that it does not seem possible to simply go and get a list of all of the toolboxes that are licensed for use. You can only display what ones you currently are accessing in your program or test for a specifically named toolbox. The following (with thanks to Dr Nigel Johnston) shows a couple of examples of use...

  • List toolboxes (licenses) currently in use...
    license('inuse')
  • Check if a license exists for a given toolbox...

    license('test', 'name_of_toolbox')

    This will return a value of either 0 (false) or 1 (true). Note that the name of the toolbox must NOT exceed 27 characters!! but that some toolbox names actually do :(

  • The following routine (.m file) may be used to test for the existence of a number of toolboxes. You may add to or edit the list to test (toolboxes) for other specific toolboxes but the names must not exceed 27 characters between the 'quotes'...

    toolboxes={'Control_Toolbox', 'Data_Acq_Toolbox', 'Database_Toolbox', 'Signal_Blocks', 'RTW_Embedded_Coder', ...
    'Extend_Symbolic_Toolbox', 'Fuzzy_Toolbox', 'Identification_Toolbox', 'Image_Toolbox', 'SimDriveline', ...
    'MBC_Toolbox', 'SimMechanics', 'Neural_Network_Toolbox', 'Optimization_Toolbox', 'Robust_Toolbox', ...
    'Real-Time_Workshop', 'Simulink_Accelerator', 'Stateflow_Coder', 'Stateflow', 'Signal_Toolbox', ...
    'SimHydraulics', 'Symbolic_Toolbox', 'Spline_Toolbox', 'Simscape', 'Statistics_Toolbox', ...
    'Wavelet_Toolbox', 'Real-Time_Win_Target'};

    status={'not available', 'available'};

    disp(' ');
    disp('Status of MATLAB toolbox licenses')
    disp(' ');

    for i=1:length(toolboxes)
    disp(sprintf('%28s %s', toolboxes{i}, status{license('test', toolboxes{i})+1}))
    end

Matlab - Excel Link Toolbox

Notes: To get Matlab Excel link to work the user needs to have \\campus\files\public permanently
mapped with a static drive letter. The Administrator needs to use this same drive letter when
running Matlab with the /regserver command:

 

  1. Decide with the user which drive letter they would like to use

     

  2. Login as Administrator

     

  3. Map (Drive Letter): \campus\files\public

     

  4. Go to the Start Menu

     

  5. Select Run...

     

  6. Enter (Drive Letter):\Applications\MATLAB\R2007a\bin\win32\matlab /regserver in the dialogue box and execute it by clicking the OK button

     

  7. MATLAB should start as a minimized application. This means that the command windows will not appear, but the MATLAB Icon will be on the Task Bar.

Still logged in as Administrator, test that the link is working:

 

  1. Start Microsoft Excel

     

  2. Pull down the Tools menu, select Add-Ins and click Browse.

     

  3. Find and select the Excel Link add-in excllink.xla under (Drive Letter):\Applications\MATLAB\R2007a\bin\win32\matlab /regserver. Click OK.

     

  4. Back in the Add-Ins window, make sure there is a check in the box for Excel Link for use with MATLAB and click OK. The Excel Link add-in loads now and with each subsequent invocation of Excel. Watch for the appearance of the MATLAB Command Window button on the Windows taskbar

If all works as expected, logout of the Administrator account and login as the user.

  1. Map \\campus\files\public to the drive letter agreed upon above.

     

  2. Perform steps 1-3 above to test that the link is working

 

Configuring Excel to Work with Excel Link:

You need the Matlab Excel Link toolbox installed on your computer. This will be the case for all Active Directory installation using the campus Network installation of the software.

     

  1. Start Microsoft Excel.

     

  2. Pull down the Tools menu, select Add-Ins and click Browse.

     

  3. Find and select the Excel Link add-in excllink.xla under <matlab>\toolbox\exlink (see notes below). Click OK.

     

  4. Back in the Add-Ins window, make sure there is a check in the box for Excel Link for use with MATLAB and click OK. The Excel Link add-in loads now and with each subsequent invocation of Excel. Watch for the appearance of the MATLAB Command Window button on the Windows taskbar.


Note: Throughout this document the notation <matlab> represents the MATLAB root directory, the directory where MATLAB is installed on your system.

For older installations this will most likely be a local installation at C:\Program Files\Matlab\version (Where 'version' is the version number).

However for Active Directory installations from generally 2006b onwards, Matlab is NOT installed locally but is accessed via a single network installation, though it should be remember that it actually runs on the local PC. The advantage of this is that any updates or additions may be installed in one single place and then everyone will see it immediately. However, this can cause some programs a slight problem when they are programmed only to believe that Matlab is installed locally!! There is no single fix for such programs and thus each must be addressed individually by its specific requirements. Indeed it may not even be possible for some programs to access the Network installation of Matlab.

Generally though for AD users the network path to <matlab> is at: \\campus\files\Public\Applications\MATLAB\R2007a\ and using this path will generally be sufficient. You can navigate to this area from an AD PC by simply typing this path into the Windows Explorer Address bar. In the above instructions at line 2. It may be worth making this connection to the files before browsing.

These links may be of some assistance...

The MathWorks - Spreedsheet Link for Microsoft Excel

Matlab Excel Link Users Guide V2

Maple Toolbox for Matlab

06/11/2008

At the time of writing this section details are a little difficult to come by and so this is not as yet complete nor possibly entirely accurate as we would prefer. Sadly it has thus far proved impossible to obtain a clear picture.

If our (MECS) understanding is correct? It would appear that Matlab use an IPR (Intellectual Property Rights?) portion of Maple code within Matlabs own code but that as of Matlab 2008, Matlab no longer have this code included. As of Matlab 2008b it would seem (from the brief information we have been given) that there will be two versions of the Simbolic Toolbox, one with Maple code in it and another with Mathworks code to replace it.

Whilst Matlab 2007 and before included this, Matlab 2008 and above does not. Thus if one requires Maple code support for Matlab 2008 then one needs to have installed the Maple Toolbox for Matlab. This is being added to the campus network installation of Matlab 2008a, used by Active Directory based systems but standalone systems such as laptops will require this to be manually installed.

In so far as we know?, One needs to download the toolbox from the Matlab website...

MapleToolboxforMATLAB_WindowsNet.exe

And use the appropriate license code...

Network: LTP78E2QPPKDBWKB

Single User: GM9WCTKX9X3BCV3U

Maple 12 Staff Home Use Code: Y2XJSBAYHMPP8A5V

Just as soon as we have any further information we will post it here, but in the meantime this is all we have.

It would also seem to be the case that to use the MBC toolbox with the latest Matlab license (2008) one must redirect any calls to the old Maple Symbolic Maths toolbox to use instead the Mathworks Symbolic Maths toolbox that replaces it.

See also the Maple/Matlab web page concerning the Maple Toolbox for Matlab

Note that currently the Maple IRP toolboxes installed on the AD Network installation of Matlab cannot, because of the way they are licensed, be installed on the Terminal Services machines. It is hoped that Mathworks may come up with a solution to this.

Because of the Maple code situation and the fact that it is not now included with Matlab 2008, BUCS are ultimately going to move to the Symbolic toolbox provided by MathWorks and all users will need to convert their code to the new functions. BUCS will try to publicise this and it is hoped that it may be implemented for Semester 1 of 2009.

Please get back to us (MECS) if you know something more about this than we have been thus far informed of.

License Renewals & Purchasing Additional Toolboxes

License Renewals...

Computers (Especially Active Directory based computers) that access the normal FlexLM network license need never worry about the license renewal as this is covered centrally and the campus license server updated as required.

However, people who have applied to IT Support for a standalone Matlab license for use on a manual installation of Matlab, such as a non networked computer or a laptop etc, will need to updated the license each year. This they can only do provided that they have a Matlab account and a valid University email address.

If you are updating the same license on the computer and you have an Internet Connection...

  1. Connect the computer (whose Matlab license is to be renewed) to the network
  2.  

  3. Run the Matlab application on the computer concerned
  4.  

  5. Navigate to the MATLAB Help menu and select Licensing > Update Current License to automatically download the latest license file.

Use the following Matlab link for a complete explanation...

http://www.mathworks.co.uk/support/solutions/en/data/1-2YJW8B/?solution=1-2YJW8B

 

For users who have obtained their own Matlab license keys and have a Matlab account and who do not have an internet connection on the computer running Matlab...

  1. Navigate to the Mathworks Home page http://www.mathworks.co.uk/
  2.  

  3. Click on the Log in link located in the Top Right
  4.  

  5. You may then click on the Support tab and then under the My Account section, click on Manage My Licenses.


Purchasing Additional Toolboxes...

Whilst the University now pays centrally for the campus Matlab license (under license agreement 345666 TAH), additional toolboxes that fall outside of the remit of the campus TAH license must be funded by individuals (groups) requiring them. Users with non TAH licensed toolboxes may be asked to pay the annual maintenance fee applicable to those toolboxes.

Any enquiries regarding additional toolboxes, licensing etc should be made to either your local IT support team, who should be able to make the necessary enquiries for you, or to...

The Software Licence Manager, Co-ordinator & Capability Manager (BUCS 2-South)

University of Bath, Claverton Down, Bath BA2 7AY

Any additional toolboxes would be made available to AD computers by adding the necessary license keys to the campus FlexLM license manager and installing the toolbox into the requisite network installed version of Matlab. Standalone Non networked installations would require Activation via the Mathworks web site under license 345666.

Accessing Matlab from the Library and TS PC's

At the time of writing (November 2009) the campus Terminal Services (TS) PC's are running Matlab 2009b campus FlexLM TAH Licensed version. Matlab is also available on the Library (PACS) machines. No earlier version is available via the TS machines.

Matlab Manuals

When a Matlab toolbox license (or other product) is purchased, a paper manual is subsequently delivered to BUCS. The user who purchased the product will have the option of retaining the manual for their own use or having it placed into the library. The advantage of having the manuals placed into the library is that they do not get forgotten about gathering dust on a shelf somewhere. This happens quite often and when a new user comes along, the manual can no longer be found. Thus we recommend that the manual is placed into the library. However, at the end of the day it is the decision of the user or group that purchased the product.

Electronic manuals are available for the RealTime Workshop Embedded Coder under G:\Matlab\RealTimeEmbeddedCoder

Please also note that Matlab users can find copies of the Matlab Electronic Digests by using Windows Explorer to navigate to \\campus\files\mecheng\Support\Matlab\Digests

Matlab User Preferences

In response to User requests BUCS have changed the default location for Matlab user preferences files on the terminal servers to H: drive.

This means that the Matlab command history file will now be saved to H: (H:\Profiles_do_not_delete\campusts\application data\) - rather than to the server's 'Documents and settings' directory - and users should see their command history when they log back in to 'terms'.

Note that the Terminal Services machines and the Library/Mech Eng AD PC's use different H:\Profiles_Do_Not_Delete areas and thus Application Data areas, as per...

Library or Mech Eng PC Logins   H:\Profiles_Do_Not_Delete\campus
Terminal Services Logins   H:\Profiles_Do_Not_Delete\campusts

Also note that for some users, their H:\Profiles_Do_Not_Delete folder name does not contain capital letters. However, they operate in exactly the same way.

Setting Your Initial Current (Work) Folder

The following has been extracted from the MathWorks Matab 2007a Installation Mnaual...

By default, when you start MATLAB using the shortcut the installer puts on your desktop, the initial current folder is the matlabroot\work folder, where matlabroot represents the name of your installation folder. You can, however, use any folder as your MATLAB initial current folder. To specify another folder as your initial current folder, right-click the MATLAB shortcut that the installer creates on your desktop and select the Properties option. Specify the name of the folder in the Start in field.

You are STRONGLY recommended to change this work folder definition to point to an area within your own filespace or to a secure area on a 2nd local hard disk drive.

Matlab User Profiles

When Matlab is first run it checks to see if the user has already run Matlab before and if not creates a Matlab profile folder for the user. For Active Directory users this is not of course held on the local computer but is with the users campus profile space on drive H: so that it may 'follow' the user from one AD system to another. The following shows the path to the user profile for and Active Directory version of Matlab 2008b, other versions will have an appropriately named profile folder, as per...

H:\Profiles_Do_Not_Delete\campus\application data\Matlab\R2008b

Don't forget that Terminal Server and Gigaterm users have a slightly different profile path, as per...

H:\Profiles_Do_Not_Delete\campusts\application data\Matlab\R2008b

On non Active Directory computers, such as laptops etc, the profile will be found at...

C:\Documents and Settings\username\application data\Matlab\R2008b

Sometimes anomalies can occur within the users Matlab profile that can impact upon the operation of Matlab. In these cirecumstances it is sometime necessary to create a new Matlab user profile area. This may be done as follows...

  1. Login as the user and ensure that Matlab is not running.

     

  2. Navigate to H:\Profiles_Do_Not_Delete\campus\application data\Matlab\
    or the Terminal server or local version where appropriate.

     

  3. Rename (or delete if you are sure) the current profile folder, e.g. R2008b to say R2008b.old. This allows the user to look at the old profile files as a reference should something that no longer work as it did before. Delete the old profile folder when you are happy that all is working as it should be.

     

  4. Run Matlab in order to create a new profile and test if this cured the proble being experienced.

For info only: Note that Windows 7 does not store its user profiles in the same way as XP.

Setting up MATLAB Environment Options

The following has been extracted from the MathWorks Matab 2007a Installation Mnaual...

To include welcome messages, default definitions, or any MATLAB expressions that you want executed every time MATLAB is invoked, create a file named startup.m in the matlab\toolbox\local folder. Every time you start MATLAB, it executes the commands in the startup.m file. A sample startup file, named startupsav.m, that you can rename and use as a starting point is included in this folder.

Especially now that the Matlab executables etc are now located on a central network drive and not locally, especially for those machines on Active Directory, it is important to use Matlabs environment variables to specify where things are that you wish to compile to.

Mapping the Matlab Network Installation Folder

For campus Active Directory computer (PC) systems Matlab is not always installed locally but on a shared Network Drive. When a request to have Matlab R2008 onwards installed is made what is actually installed are the various UNC network paths and Start Menu links necessary for the user to run Matlab. Although it must be noted that whilst the files are located on a network drive, Matlab still runs on the local computer accessing the files.

Just for clarity...

Matlab R13 and R14 is only available as a manual installation directly into the host computer using CD's.

Matlab 2006a and 2007a are only available either as a manual installation from CD's or as an Active Directory MSI installation which installs directly into the host computer. \\campus\files\Public\Applications\Matlab

Later versions of Matlab are available for installation on University computers such as Active Directory systems. For personally owned or other manual installations then the installation files are available on the University download site but only to certain classes of users. If you cannot access the site then you are not elegible to download the software.

University Secure Downloads Site

Currently the following versions of Matlab are available...

  • 2007aLinux_x86.iso - Matlab Linux version 2007a · 1.3GB 14 Jan 2010
  • 2008aLinuxMAC.iso - Matlab2008a Linux & Mac OS (Intel) NOTE activation is required · 3.6GB 19 Nov 2009
  • 2008aWin32Win64.iso - Matlab2008a for Windows (x32/x64) NOTE activation is required. · 3.5GB 19 Nov 2009
  • 2008bWin32Win64.iso - Matlab2008b for Windows (x32/x64) NOTE activation is required. · 4GB 19 Nov 2009
  • 2009bWin32Win64.iso - Matlab2009b for Windows (x32/x64) NOTE activation is required · 4.7GB 14 Jan 2010
  • R2009b_UNIX.iso - Matlab R2009b for Mac (x32) · 4.5GB 14 Sep 2010
  • R2009b_UNIX.iso - Matlab R2009b for Mac (x64) · 4.5GB 14 Sep 2010
  • R2010b_UNIX.iso - Matlab R2010b for Mac (x64) · 4.5GB 14 Sep 2010
  • R2010b_UNIX.iso - Matlab R2010b for Linux (x64) · 4.5GB 21 Sep 2010
  • R2010b_Windows.iso - Matlab R2010b (x32) - Note: Activation is required · 3.9GB 09 Sep 2010

These installations (not actually used anymore) use a discrete license.dat file not linked to the campus license server.

 

Matlab 2008 and onwards, whilst installed via AD, are not installed directly to the local computer but are held on a central Applications network drive. The AD installation simply installs pointers to the network installation. Though it is possible to carryout a manual local installation using DVD's or the ISO image files from the secure downloads page. However, for Active Directory computers this is not to be encouraged.

Thus Matlab 2008a, 2008b and 2009b AD installations are Network installations stored respectively at...

\\campus\applications\MATLAB\R2008a
\\campus\applications\MATLAB\R2008b
\\campus\applications\MATLAB\R2009b
\\campus\applications\MATLAB\R20010b

These use a license.lic file that points back to the campus network license manager.

As some users need to access some of the various Matlab files directly and in some cases cannot use UNC paths. Such users may directly map the required version of Matlab to a spare drive letter. This can be done as follows...

  1. Run Windows Explorer
  2.  

  3. Select Tools / Map Network Drive
  4.  

  5. Select a convenient Drive letter
  6.  

  7. Enter the folder as one of the above paths, for example...

    \\campus\Applications\MATLAB\R2009b

    NOTE: Whilst it is best to map directly to the Matlab version folder required (E.G. R2009b) you can just map the requisite path upto and including the MATLAB folder name but not including the actual Matlab version folder. This would allow you to see all of the version folders below the respective paths.

  8. Click Finish
 

Matlab and ActiveX

The campus network installation of Matlab sometimes runs into problems with ActiveX controls. One may receive an error such as the following...

"MBC has detected a problem with its ActiveX controls installation"

When one attempts to fix the problem using the displayed option, one then receives a further message...

"MBC has attempted to install the required system files but has encountered errors"

This can only be fixed by an Administrator by completing the following steps to register the process...

  1. Login as the normal user.

     

  2. Run Windows Explorer as the local Administrator.

     

  3. From within the Administrator Windows Explorer window; Map \\campus\Files to any drive letter (E.G. Z:) as any normal Campus user. (Note: This mapping MUST be to this point. If mapped directly to the Matlab directory the registration will fail)

     

  4. From within the Administrator Windows Explorer window; run a command prompt: C:\windows\system32\cmd.exe

     

  5. In the Command prompt window, type the following command line (this assumes that the drive letter used in step 3 was (for example) Z:...

    regsvr32 Z:\Public\Applications\MATLAB\R2007a\toolbox\mbc\mbcguitools\ocx\mwmbccontrols.ocx

     

  6. Click 'OK' at the RegSvr Window prompt showing that this has been registered.

     

  7. Close the Adminitrator Windows Explorer window.

     

  8. As the user, run Matlab and at the Matlab prompt >> type the command: mbcmodel this should now run without further error.

See also the MBC FAQ/Errors below

Advisor (3.2)

Advisor is a set of .m files and GUI's designed to be used in conjunction with Matlab and provides for an Advanced Vehicle Simulator package, which is run under Matlab. This version is a pre commercial version (now available from AVL) and is used by staff and students in the Mech Eng Automotive group.

You may find a set of these files (and associated folders) under Mech Eng's Drive V: (\\campus\files\MechEng\Support), located in V:\Matlab\Advisor However, of course they are set to be Read Only! So if you need to modify them then you will need to copy the relevant file(s) to a local writable area or your campus drive H:.

Within Matlab you must set a Matlab path to point the Advisor files. You can do this from within Matlab by going to the File menu and clicking on 'Set Path'. When writing results from Advisor, make sure that you have selected either a writable locale area or your campus account area (Drive H:) to be your 'Current Directory'. This you can do using, from within Matlab, the lower lefthand panel to set the current directory.

The following is from an Advisor software Readme.txt file...

Installation Instructions (for PCs)

  1. Run the executable file which will self-extract the ADVISOR matlab files to a directory whose default name is ADVISOR3.2
  2. Start MATLAB 5.3 (or higher) and using the 'path browser', remove any previous ADVISOR paths, then change your current (active) directory to be the top-level ADVISOR directory.
  3. To run ADVISOR, type advisor at the MATLAB command prompt.>/li>

    Note: ADVISOR now automatically adds the necessary paths beyond the top-level ADVISOR directory and gives the option of saving these paths so they do not need to be added the next time.

Optionally, you may also use an ADVISOR shortcut icon to launch ADVISOR and MATLAB...

 

  1. In the main ADVISOR directory, find the ADVISOR shortcut icon and copy it to your desktop.
  2. Right click on the file and choose 'properties'.
  3. Click on the shortcut tab.
  4. Under 'Target' modify it to point to your MATLAB.EXE file (do a search for MATLAB.EXE if necessary), followed by -r advisor.
  5. Under 'Start in' enter in the main ADVISOR directory.
  6. Hit the 'change icon' button, then hit browse and find the ADVISOR.bmp file (not the shortcut file) in the main ADVISOR directory.
  7. Then enter OK, and double-click on the icon to launch ADVISOR.

***************************************
Readme.txt Last Revised: 7/10/01 (ss)
***************************************

As this software is almost exclusively used by the Mech Eng Automotive Group, you should see your supervisor or Dr Chris Brace if you have problems.The Mech Eng IT Support team is not in a position to be able to advise on the use of this Simulator software.

 

Matlab Issues with Windows 7/Vista

There are various Matlab issues to do with Windows 7/Vista User Account Control (UAC), the following is just a few. Please use the Mathworks Help and Support web site.

To turn off User Account Control...

  1. Click the Start Menu and open the Control Panel

     

  2. Located in the upper-right, next to the address bar, is a search box. Type "UAC" into this box and press Enter

     

  3. Click the link titled "Turn User Account Control (UAC) on or off"

     

  4. Uncheck the box for "Use User Account Control (UAC)" and click the OK button

Also see Matlab Help and Support

Frequently Asked Questions and Errors...

 

  1. When I open Matlab it shows 'Initialising...' but never opens, simply showing 'Initialising'?
  2.  

  3. When I attempt to open Matlab, it shows a Matlab.exe - Application Error, saying that it failed to initialize
  4.  

  5. Why do I receive a DLLRegisterServer error when using the MBUILD command from the MATLAB Compiler?
  6.  

  7. Why can't I use the Symbolic Maths Toolbox?
  8.  

  9. I am getting Out of Memory errors...
  10.  

  11. MBC (Model Based Calibration) Toolbox returns ActiveX controls error
  12.  

  13. Error running DllRegisterServer function or Failure to register ocx file
  14.  

  15. Matlab will not start on Windows Vista or Windows 7 systems utilizing VPN or mobile broadband connections
  16.  

  17. If you have installed the Release 2010b version of Simulink on Windows Operating Systems (32-bit and 64-bit) from a DVD or downloaded. Bug in Simulink causes problem resizing blocks or selecting multiple items in the editor.
  18.  

  19. Which version (32 or 64 Bit) is installed by default from the Windows DVD?
  20.  

  21. How can I install 32-Bit Matlab on my 64-Bit Windows machine?
  22.  

  23. Why do I get an unexpected exception when activating MATLAB 7.8 (R2009a) or earlier on a Mac OS X machine?

 

 


1. When I open Matlab it shows 'Initialising...' but never opens?:

Some users have had a problem when opening Matlab, most notably 2007a (TAH). Matlab starts but never gets beyond the 'Initialising...' phase. Whilst we do not know the exact cause of this problem, we do know that it can be something to do with the Matlab configuration files specific to the user concerned and which are held within the users Active Directory profile area. Removing the requisite Matlab folder causes Matlab to simply rebuild them when it is next run and this seems to overcome the problem..

To overcome this complete the following steps...
  1. Login to an Active Directory PC. For staff this might be your normal desktop PC otherwise anyone can use one of the Mech Eng computer room PC's.
  2.  

  3. Ensure that you are not currently running Matlab.
  4.  

  5. Using Windows Explorer navigate to H:\Profiles_Do_Not_Delete\Campus\application data

    In older versions of Matlab you delete the Matlab folder found here but in newer versions (2008 etc) you will find the MATLAB folder under a further folder called ..\Mathworks\MATLAB. Simple find the Matlab folder, wherever it is and delete it. Matlab will rebuild this when it is next run.

    WARNING: ONLY DELETE THE MATLAB FOLDER (and its contents) DO NOT DELETE ANYTHING ELSE

     

  6. Logout then log back into the computer again. Matlab should then run properly.

If you are concerned in anyway at removing the Matlab folder, please contact MECS via RT for further advice.

Please also see below for a further Initialization type error...


2. When I attempt to open Matlab, it shows a Matlab.exe - Application Error, saying that it failed to initialize:

There is a problem with newer PC Computers running Matlab 2008 and, though not directly observed, earlier versions that can produce the following...

It does not matter who is logged into the computer, including the Administrator, the same error is produced. Yet any of the user accounts so tried on the offending machine whan logged into other AD systems could run Matlab (including Matlab 2008b) perfectly fine. This fact discounted the Users Matlab Profile being a problem, as in the above (1) error.

A reRIS of the computer will not fix the problem. Mathworks has a Technical Solution concerning this error but we have not seen it before on the many other 2007, 2008 Network Applications area installations. Running Matlab.bat as advised by the Mathworks web page did not work on AD Network installed versions of Matlab, as it is not possible to write back to the Campus Applications area by the local PC Administrator.

However, the following did resolve this issue for 2008a/b AD Network installations...

  1. Login to the AD computer concerned as the local administrator
  2.  

  3. Map \\campus\applications to a drive letter. For the purposes of this example, this will be assumed to be Z:.
    You will need to use the 'Connect using a different user name' and use a normal campus\username login.
  4.  

  5. Navigate to the mapped network installation of Matlab concerned, E.G. for 2008b navigate to...

    Z:\MATLAB\R2008b\bin\win32\

  6.  

  7. And run the command found there called vcredist_x86.exe

    This runs (it does not Matlab) but does not actually show you anything!

  8.  

  9. Now logout as the local administrator and login as a normal user. You should now be able to run Matlab 2008a/b without this particular initialization error.

Going by what Matlab have to say about this problem, it does not exist in R2009b, Thus removing the Active Directory installation links to the campus applications area for versions of R007/8 and installing R2009b should also fix the problem.

 


3. Why do I receive a DLLRegisterServer error when using the MBUILD command from the MATLAB Compiler?:

Subject:

Why do I receive a DLLRegisterServer error when using the MBUILD command from the MATLAB Compiler?

Problem Description:

I am attempting to use the MBUILD command to select my C or Fortran compiler. However, after I select and confirm my selection, I receive the following error...

--> ""C:\MATLAB71\bin\win32\mwregsvr"
"C:\MATLAB71\bin\win32\mwcomutil.dll""

Error: DllRegisterServer in
"C:\MATLAB71\bin\win32\mwcomutil.dll" failed
Undefined subroutine &mexsetup::expire called at
C:\MATLAB71\/bin\mexsetup.pm line 752.
??? Error using ==> mbuild
Unable to complete successfully

To address this please see the following MathWorks (Matlab) web Page...

http://www.mathworks.com/support/solutions/data/1-1X1CJP.html?solution=1-1X1CJP


4. Why can't I use the Symbolic Maths Toolbox?:

Prior to the campus Matlab 2008b TAH license, the Symbolic Maths Toolbox was not available either to the 2007a/b or 2008a TAH versions or previous versions of Matlab unless one had specifically purchased a toolbox license for it. Only the Maths Dept had purchased 120 Symbolic Maths Toolbox licenses. However, as of Matlab 2008b the Symbolic Maths Toolbox has now been purchased as part of the TAH license.

Matlab 2008b is now available to any Mech Eng Active Directory upon application via RT for it to be installed and is also available on the campus Terminal Services computers

It should also be noted that the wider use of the Symbolic Toolbox has become necessary because of the Matlab/Maple routines interaction but that from Matlab 2008b Matlab no longer iuses the Maplesoft routines for the Symbolic Toolbox but uses MuPad. Please also see Matlab Symbolic Tool Box Notes


5. I am getting Out of Memory Errors...?:

This can happen especially when processing a large batch of files but there are other reasons. The possible avenues to explore are...

  1. Check that the computer has sufficient physical memory and ensure that the disk drive is not full so that temporary files and swap space cannot be facilitated. XP Workstation can only use upto 3GB of RAM
  2.  

  3. See if you can change the model in someway to reduce the amount of files it has open at any one time.
  4.  

  5. There is a 3GB memory switch that can be used. However, there are problems using this. Take a look at the Matlab Technical Notes web site: 1107 - Avoiding Out of Memory Errors


6. MBC (Model Based Calibration) Toolbox returns ActiveX controls error...

On an Active Directory PC, running the 'mbcmodel' command at the Matlab command prompt (observed with both R2008 and R2009 versions) it returns the following error...

 

However, clicking on Fix returns errors saying that it could not write to various places associated with the campus Application area, which is to be expected of course, even as the administrator.

This was overcome by logging in as the Administrator and running the following command at the CMD prompt (or use Run)...

regsvr32 msxml3.dll

After seeing the registration success message the mbcmodel command should now run both for the administrator and for the user.

However, on at least one occassion it was found that the instructions for fixing the DllRegisterServer function shown below had to be run in order to fix the above ActiveX control problem.

For more information on ActiveX errors see How To Fix ActiveX Errors.

See also the section above concerning Active X

For more information on the use of regsvr32, which is used to register and unregister OLE controls such as DLL (Dynamic Linked Libraries) or OCX (ActiveX Control) files that are self-registerable, see the following Microsoft support page...

Explanation of regsvr32 usage and error messages


7. Error running DllRegisterServer function or Failure to register ocx file

If you get the following error when running the MBC toolbox (R2008b / XP)...

Error installing
\\campus\applications\MATLAB\R2008b\toolbox\mbc\mbcguitools\ocx\mwmbccontrols.ocx

Could not register the
file\\campus\applications\MATLAB\R2008b\toolbox\mbc\mbcguitools\ocx\mwmbccontrols.ocx.

Error running DllRegisterServer function.

Try the following...

  1. Login as the local Adminstrator
  2.  

  3. If using the network version of Active Directory Matlab then you will need to map the Matlab application area to a drive letter.

    • Run Windows Explorer
    •  

    • Map \\campus\applications to a drive letter, for example Z: You will need to 'Connect using a different username' in order to do this as the local administrator cannot directly map this area. Use the username format of 'campus/username'.

  4. In a Command Prompt, run the following command...

    regsvr32 Z:\MATLAB\R2008b\toolbox\mbc\mbcguitools\ocx\mwmbccontrols.ocx

    This assumes that R2008b is the version you are using, if not replace this with the actual version.

    If you are using a locally installed version of Matlab then change the path to mwmbccontrols.ocx, shown above, to where Matlab is actually installed locally.

     

  5. Now run Matlab and the mbcmodel command. This should work, in which case log out and back in as the normal user and try again.

For more information on the use of regsvr32, which is used to register and unregister OLE controls such as DLL (Dynamic Linked Libraries) or OCX (ActiveX Control) files that are self-registerable, see the following Microsoft support page...

Explanation of regsvr32 usage and error messages


8. MATLAB will not on Vista or Windows 7...

This BUG has been fixed in Matlab release 2010b (7.11)

Summary

MATLAB will not start on Windows Vista or Windows 7 systems utilizing VPN or mobile broadband connections such as 3G

Description

MATLAB R2009b will not start when running VPN clients on some Windows computers or while using a 3G network card. MATLAB R2009b works fine when not using the 3G card or after closing the VPN client.

MATLAB will not start when there are certain PPP adaptors configured on Windows systems. Such adaptors include connections made via VPN (Virtual Private Network) or a mobile broadband device (Internet connection made using a 3G/GSM/CDMA/EDGE etc. network). MATLAB works fine when not using this type of connection. The problem occurs due to a bug in FlexNet version 11.6.1 which is used in MATLAB. When MATLAB is started, FlexNet checks all possible system Host ID's, including the physical and virtual addresses for all Ethernet adaptors. In the case of certain virtual PPP adapters, the MAC address is returned as an empty string and the FlexNet software incorrectly handles this situation by looping indefinitely. This loop prevents MATLAB from starting properly and manifests itself as a hung matlab.exe process. When the bug occurs, the MATLAB splash screen may occur for a brief moment and then disappear promptly.

Workaround

There is currently no fix for this problem. The only workaround we have at this time is to close the VPN client or not use your 3G card to connect to the Internet while opening and using MATLAB R2009b.

Exists in Release (Version)

Exists in R2009b(7.9)

Reference Mathworks BUG report 582876


9. Matlab 2010b Simulink Mouse Bug

If you have installed the Release 2010b version of Simulink on Windows Operating Systems (32-bit and 64-bit) from a DVD or downloaded it from the MathWorks web site, please review the following important information.

MathWorks has identified and fixed a bug in Simulink that causes a problem when using the mouse to resize blocks or to select multiple items in the editor.

See bug report 670179 for information on correcting this problem. (Login required)

For users without a Matlab login this BUG report has been reproduced here for your convenience...

Summary...

On all Windows platforms (32bit & 64bit) marquee selection in Simulink Editor as well as block resizing are broken when horizontal or vertical scroll offsets are greater than zero.

Description...

When working with Simulink, if the editor is panned to a region other than the upper left portion of the diagram, marquee selection and block resizing no longer work correctly. The marquee selection box is drawn in an incorrect location and the wrong diagram elements are selected. When resizing a block the block size may become corrupted.

Workaround...

Change Log:

- Uploaded binary attachment to fix bug in R2010b. [Sept. 16th, 2010]

Installation instructions...

  1. Log in to an account with appropriate permissions to overwrite files in your MATLAB installation. On Windows systems this is the local machine administrator and on Linux systems, this is typically the root account.
  2.  

  3. Locate your MATLAB installation by typing matlabroot at the MATLAB command prompt. This folder is referred to as <MATLAB> in subsequent steps.
  4.  

  5. Exit MATLAB.
  6.  

  7. Download the .zip file associated with this Bug Report and store the file in the <MATLAB> folder.

    attachment_670179_10b_win32_win64_2010-09-16.zip

  8.  

  9. Make a backup copy of each of the files listed in the .zip file. To see the contents of the .zip file:

    Windows Systems: Open the .zip file and look at the contents.

     

  10. Extract the files from the .zip file.

    (*) Windows Systems:

    Open the .zip file.
    Extract the contents of the file to your <MATLAB> folder.

  11.  

  12. Delete the .zip file in the <MATLAB> folder.

Questions?

If you have any questions about the release, please contact us.

Sincerely,

MathWorks Customer Service Team

new heading