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.
Table of Contents
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.
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:
- Go to mathworks.com and look for Sign In and then Create Account.
- Use your ULPGC email, not a personal one: that is what links the account to the university licence.
- When it asks what you will use it for, choose student use.
- 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:
- Sign in with the account from step 1 (the ULPGC email).
- Choose the university licence if it asks which one to use.
- 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. - In the list of products, MATLAB is already ticked. Tick the Symbolic Math Toolbox as well if it appears: that saves you step 3.
- 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:
- Open MATLAB. On the HOME tab, click Add-Ons and choose Explore Add-Ons.

- 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.

- Open it and click Install. If it asks you to sign in, use the same account.

- 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.
- On HOME, click New Script.
- 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
- Save it as
tp2_sistema.m(no spaces or accents) in a folder of your own, for exampleDocuments/MATLAB/AG. - 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.

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

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
verlist the Symbolic Math Toolbox, and doessyms arun without an error? - Does your
tp2_sistema.mgivex = -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
| Symptom | Likely cause | Fix |
|---|---|---|
| It only offers a 30-day trial | The account is not on the ULPGC email | Add the @ulpgc.es email to the account or create one with it |
syms gives Unrecognized function or variable ‘syms’ | The Symbolic Math Toolbox is missing | Step 3: Add-Ons → Explore Add-Ons → Install |
rank (or det) stops working in your scripts | You saved a file with that name (rank.m) | Rename the file |
| Unrecognized function or variable ‘tp2_sistema’ when you click Run | The script is not in the current folder | Click Change Folder when offered or open its folder in Files |
| Everything comes out as odd fractions | format rat was left on | Type format |
| The installer stalls or fails to download | Slow or dropped connection | Close it, reopen it on a stable connection and repeat the installation |
Summary
- MathWorks account with your ULPGC email: it is what gives you the free licence.
- Install MATLAB and the Symbolic Math Toolbox (in the installer or later, from Add-Ons).
- Check with
verandsyms athat the toolbox is there. - Write your first script, save it without spaces or accents and run it with Run.
format ratto see fractions;formatto 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 articlesDid this article help you? Here is how you can support SergioLearns →



