Getting Started with MATLAB

Installation (Windows & Mac)

  1. First you need to create a Mathworks account using your long imperial email (e.g. name.surname21@imperial.ac.uk).
  2. Mathworks will recognize your Imperial email and ask you to log in from through the Imperial portal.
  3. Finalize the creation of your Mathworks account.
  4. Mathworks should have granted an educational Matlab license, you should be able to download and install it as you would normally expect.

    Interface

    When you first install Matlab, your interface should look like this, it should have 3 main panels.

interface

Current folder, on this panel you can view and access your files.

current

Command Window, on this panel you can enter commands and interact with variables in real-time. This panel is where most of the action will happen!

command window

Workspace, on this panel you can see all your declared variables, their type and their value.

workspace

Declaring variables and basic operations

Declare variables

The following command will create a variable called a with the value of 34

a = 34

Many more variables can be created

b = 21

These variables can be used to create new variables!

c = a + b
c =
    55

Basic Operators

These can be used to create all sort of operations:

d = (a * b)/c
d = 
    12.9818

Useful information

Dyson School of Design Engineering 2021 - Ivan Revenga Riesco