You are on page 1of 5

MATLAB

09 August 2019 16:22

Clear --> To clear the variable in workspace


Clc ---> To clear the commands in HOME tab

LAYOUT -> Default Layout to return back if these


Windows are misaligned

MATLAB Page 1
Arrays in MATLab
13 August 2019 16:26

Creating Row and Column Vectors

Row Vector

Column Vector ( Separated by Semicolon ; )

MATLAB Page 2
Creating Equally Spaced Vectors

Do not add [ ] for vectors

Creating Equally Spaced Vector with Intervals

Start Interval End

If you know the number of elements you want in a vector you could instead use the linspace function
Syntax: variable = linspace(first_no, last_no, number_of_instances)

MATLAB Page 3
Transpose Operator : Row Vector Column Vector

ARRAYS
Columns
Rows

MATLAB Page 4
Storing variables in MATLab
14 August 2019 10:32

A set of array
is stored in
"data"

File name to save

Command Variable name

Command to load the


saved data

filename

Importing DATA

Importing various data such as:


□ Text
□ Image
□ Spreadsheet
Etc.,
can be helpful in creating arrays (or) analysing existing information.

MATLAB Page 5

You might also like