Install MATLAB for free with the ULPGC — the student licence, the Symbolic Math Toolbox and your first script

The first time I opened the brief for the second AG assignment I typed syms a and MATLAB told me it did not know that function: I had installed MATLAB, but not the Symbolic Math Toolbox. It took me half an afternoon to understand that MATLAB comes in pieces and the one for symbols has to be added separately. This guide goes step by step so it does not happen to you: account, licence, installation, the toolbox and a first script that checks everything.

What you need before you start

  • Your ULPGC email (the student one, ending in @ulpgc.es). The ULPGC has a campus licence for MATLAB, and that email is what gives you free access while you are a student.
  • A computer with Windows, macOS or Linux and several gigabytes free: MATLAB alone takes quite a lot, and every toolbox adds to it.
  • An internet connection during the installation (the installer downloads what you choose) and the first time you open it, to activate the licence.
From the account to the first scriptFive steps: MathWorks account with the ULPGC email, campus licence, installer, Symbolic Math Toolbox and first script.1MathWorksaccount@ulpgc.es email2Campuslicencelinked for you3InstallerMATLAB R2025a4SymbolicMath Toolboxfor syms and solve5Firstscripttp2_sistema.mFive steps, about 30 minutes on a good connectionStep 4 is the one people forget: without it, syms fails in the assignments
Step 4 is usually the missing one when syms does not work.

If you just want to try something quickly or you are on your phone, the site has a MATLAB-compatible playground that runs in the browser with nothing to install, syms included. For the AG assignments, it is worth having the real MATLAB.

Step 1: your MathWorks account with your ULPGC email

MathWorks is the company that makes MATLAB. To download it you need an account with them:

  1. Go to mathworks.com and look for Sign In and then Create Account.
  2. Use your ULPGC email, not a personal one: that is what links the account to the university licence.
  3. When it asks what you will use it for, choose student use.
  4. Confirm your email with the link you receive.

With the ULPGC email, the campus licence is linked to your account automatically: there is no licence number to type. If you can see the university licence in your account, you are done.

Creating the account with your personal email. It still gets created, but it does not have the ULPGC licence and will only offer you the 30-day trial. If you already created it that way, add your ULPGC email to the account or create a new one with it.

Step 2: download and install MATLAB

From your account, under the ULPGC licence, look for the download option and install the latest release it offers. On my computer it is R2025a (releases are named after the year and a letter: a in spring, b in autumn); with a newer one the process is the same.

Which file do I download? The installer for your system: on Windows, an executable you open with a double click; on macOS, a DMG file (it may come inside a zip) that mounts like a disk; on Linux, a zip such as matlab_R2025a_Linux.zip, which you unzip and install with the install script. All three are small: the heavy part is downloaded by the installer itself.

When you open the installer:

  1. Sign in with the account from step 1 (the ULPGC email).
  2. Choose the university licence if it asks which one to use.
  3. Keep the installation folder it suggests. On Windows, C:\Program Files\MATLAB\R2025a; on macOS, /Applications/MATLAB_R2025a.app; on Linux, /usr/local/MATLAB/R2025a.
  4. In the list of products, MATLAB is already ticked. Tick the Symbolic Math Toolbox as well if it appears: that saves you step 3.
  5. Let it download and install. Depending on your connection, between ten minutes and half an hour.

Do not tick everything “just in case”. Each toolbox takes up quite a lot of space, and for AG you only need MATLAB and the Symbolic Math Toolbox.

Step 3: the Symbolic Math Toolbox (if you did not tick it)

This is the piece from my story. Without it, syms, solve or subs fail, and the AG assignments use it for problems with parameters (“for which values of a…?”). If you already have MATLAB installed, you add it from inside:

  1. Open MATLAB. On the HOME tab, click Add-Ons and choose Explore Add-Ons.
MATLAB R2025a with the Add-Ons menu open on the HOME tab: Explore Add-Ons, Manage Add-Ons, Package Toolbox and Get Hardware Support Packages
The Add-Ons menu, on the HOME tab.
  1. In the Add-On Explorer search box, type Symbolic Math Toolbox. Look at the Included in Your License label: it means it is part of the ULPGC licence and costs nothing.
Add-On Explorer with the search Symbolic Math Toolbox: the first result carries the label Included in Your License
The Symbolic Math Toolbox comes first, with “Included in Your License”.
  1. Open it and click Install. If it asks you to sign in, use the same account.
Symbolic Math Toolbox page in the Add-On Explorer, with the Learn More and Install buttons
The toolbox page: the Install button is on the right.
  1. Wait for it to finish (a few minutes) and restart MATLAB if it asks you to.

To check it is there, type ver in the Command Window: it lists everything you have installed, and the Symbolic Math Toolbox has to be in it. A more direct test is syms a: if it does not fail, you are done.

Step 4: your first script

Let us check that everything works with a script like the ones in the assignments.

  1. On HOME, click New Script.
  2. Paste this:
% Assignment 2: a consistent system with one solution
A = [2 -1 0; 1 3 -1; 1 0 1];
B = [-7; 5; 0];
AB = [A B]

% Rouché-Frobenius: ranks and unknowns
p = rank(A), q = rank(AB), n = size(A, 2)

% Gauss-Jordan and the solution
rref(AB)
x = A \ B

Output:

AB =

     2    -1     0    -7
     1     3    -1     5
     1     0     1     0

p =

     3

q =

     3

n =

     3

ans =

     1     0     0    -2
     0     1     0     3
     0     0     1     2

x =

    -2
     3
     2
  1. Save it as tp2_sistema.m (no spaces or accents) in a folder of your own, for example Documents/MATLAB/AG.
  2. Click Run. The output above is what has to appear in the Command Window.

To have everything in view, go to HOME → Layout and choose Three Column: files on the left, the editor and the Command Window in the middle, and the Workspace with every variable on the right.

MATLAB R2025a desktop in three columns: Files with tp2_sistema.m, the editor with the script, the Command Window with the solution -2, 3, 2 and the Workspace with A, AB, B, n, p, q and x
My MATLAB after running tp2_sistema.m: every variable of the script is in the Workspace.
The MATLAB desktopThe four panes of the MATLAB desktop in the three-column layout: Files, Editor, Command Window and Workspace.FilesCurrent Folderwhere your .m files liveEditortp2_sistema.myou write and save the scriptCommand Window>>you try a command and see the outputWorkspaceA, B, x…every variable with its value
The four panes with Layout → Three Column; the Workspace is the one you will use most in AG.

Check the fractions with format rat

In AG you will compare a lot with your work by hand, and on paper you get fractions. format rat makes MATLAB show them that way. Type this in the Command Window, after running the script:

format rat
[~, U] = lu(AB)
format

Output:

U =

       2             -1              0             -7       
       0              7/2           -1             17/2     
       0              0              8/7           16/7     
MATLAB Command Window with the matrix U in fractions: 7/2, 17/2, 8/7 and 16/7
The same output in my MATLAB: this is how the fractions line up in the Command Window.

U is a row echelon form of the augmented matrix (the one from the LU decomposition) and with format rat it reads just like on paper. The format at the end goes back to the normal format; if you leave it out, everything you do afterwards will come out as fractions.

Final check

Before calling the installation done, go through these questions:

  • When you open MATLAB, does it not ask you to activate anything, and does the Command Window show >>?
  • Does ver list the Symbolic Math Toolbox, and does syms a run without an error?
  • Does your tp2_sistema.m give x = -2, 3, 2, with all three ranks equal to 3?
  • Do you know which folder you save your scripts in, and can you see it in the Files pane?

Common problems

SymptomLikely causeFix
It only offers a 30-day trialThe account is not on the ULPGC emailAdd the @ulpgc.es email to the account or create one with it
syms gives Unrecognized function or variable ‘syms’The Symbolic Math Toolbox is missingStep 3: Add-Ons → Explore Add-Ons → Install
rank (or det) stops working in your scriptsYou saved a file with that name (rank.m)Rename the file
Unrecognized function or variable ‘tp2_sistema’ when you click RunThe script is not in the current folderClick Change Folder when offered or open its folder in Files
Everything comes out as odd fractionsformat rat was left onType format
The installer stalls or fails to downloadSlow or dropped connectionClose it, reopen it on a stable connection and repeat the installation

Summary

  1. MathWorks account with your ULPGC email: it is what gives you the free licence.
  2. Install MATLAB and the Symbolic Math Toolbox (in the installer or later, from Add-Ons).
  3. Check with ver and syms a that the toolbox is there.
  4. Write your first script, save it without spaces or accents and run it with Run.
  5. format rat to see fractions; format to go back.

With MATLAB ready, the next step is learning to use it: start with MATLAB from scratch: the Command Window, vectors and matrices and carry on with scripts, systems of equations and syms. Everything for Linear Algebra and Geometry will appear on its subject page.

Keep goingAll Tools articles

Did this article help you? Here is how you can support SergioLearns →