Differences between revisions 29 and 30
Revision 29 as of 2021-09-17 14:37:13
Size: 5206
Comment:
Revision 30 as of 2023-02-10 14:56:43
Size: 5201
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
== License issues == == Licensing ==

Info about Matlab

Matlab is available free for all members of BCS, and all CVS members who have appointments in AS&E.

Installing a new copy of Matlab

1) To download a Matlab installer, visit the Mathworks website (https://www.mathworks.com) and create an account there using your UR e-mail address. Doing so will automatically associate your account with the UR site license and allow you to download whatever version of Matlab you need.

2) For the 2015b and later versions, you need to be connected to the Internet. Run the executable that you downloaded. It will ask for your Mathworks credentials. If you don't currently have a Mathworks account, the installer gives you an option to create one. You need to use a UR e-mail address for this account. Enter your credentials, then the program will begin the installation process.

3) The installer will automatically identify you has a UR user, and load in the site license information automatically. No need to manually enter an activation code. Accept all default setting in the subsequent windows, and installation will begin. Since this installer is downloading all of the necessary files over the Internet, it may take an hour or more for Matlab to finish installing.

4) Once the install is complete, Matlab should automatically activate itself. Once it does, the program is ready to use.

5) If you download a version of Matlab older than R2015b, an activation code is required. Please contact Chris Freemesser for that code.

Licensing

The University's Matlab site license goes through an annual renewal process, and this can result in your copy of Matlab showing warnings about the license expiring. To remove the warning, click on "Help-> Licensing -> Update Current License". Matlab should then retrieve the new license from Mathworks and you'll be good for another year.

If this does not fix the problem, then you will need to deactivate and reactivate your copy of Matlab. You need an account with Mathworks that uses a UR e-mail address to do this. If you don't have one, simply to go https://www.mathworks.com/academia/tah-portal/university-of-rochester-30680214.html, log in with your NetID, and create one.

1) On a Windows computer, first quit Matlab. Then on the desktop click on 'Start->All Programs' and select the Matlab *folder*. Inside, you should see three files..Activate Matlab, Deactivate Matlab, and Matlab itself. On a Mac, right-click (or Control-click, or two-finger click on MacBook Pro trackpad) on the Matlab application itself and select "Show Package Contents" from the resulting window. Inside this, you'll find separate activation and deactivation programs for Matlab.

2) Run the deactivate program to deactivate your copy of Matlab.

3) Run the activate program, login with your Mathworks account, and reactivate Matlab. If you're running an older version of Matlab (earlier than the 2014 versions if I remember correctly), you will need the University's Matlab activation code to do this. Please contact Chris Freemesser for that code.

I get an error on a Mac saying that the license file cannot be written to disk

Common problem with the Mac version...it's a file permissions issue.

Fix the file permissions for the Matlab directory:

Open the /Applications/Utilities/Terminal app and in the resulting window, type the following CASE-SENSITIVE commands at the command prompt ("<space>" means a single press of the space bar). I'm assuming you have Matlab R2013a...if not, adjust the second command accordingly:

sudo<space> -s (hit return, then enter your OSX password to make yourself the superuser)

cd<space>/Applications/MATLAB_R2013a (then hit return to switch to the Matlab directory)

chmod<space>-R<space>777<space>* (then hit return to make all files in the Matlab folder read/writable by you)

exit (then hit return to quit being superuser)

exit (then hit return to exit the terminal session)

Once you enter all of these commands, you should now be able to activate the software.

Matlab on an Apple MacBook Pro with MacOS Big Sur is really slow and laggy

This is a known issue affecting certain models of Macs (seems like M1-based MacBook laptops are the big problem). A workaround is to run Matlab from a command line. Here's how to set up your computer to make this easy.

1) Open the Terminal app in the /Applications/Utilities folder on your Mac

2) At the command line type in the command "sudo -s", then enter your Mac login password when asked.

3) At the command prompt type "nano /etc/paths". This opens a text-based file editor. You will see a list of several directory paths stored in this file. At the end of the list, on a new line, enter the path "/Applications/MATLAB_R2021a.app/bin" (replace "R2021a" with whatever version of Matlab you're using). Then press Control-O to save the file, then Control-X to exit nano.

4) Reboot your computer.

5) Once rebooted, open another Terminal window and simply type "matlab" at the prompt. Matlab will open and should work at "normal" speed.

MatlabInfo (last edited 2023-02-10 14:56:43 by WikiAdministrator)

MoinMoin Appliance - Powered by TurnKey Linux