Matlab Introduction
Matlab Introduction
What is MATLAB
High level language for technical
computing
Stands for MATrix LABoratory
Everything is a matrix - easy to do
linear algebra
Command Window
> To execute commands
in the MATLAB
environment
Command History
> Displays record of the
commands used
10
column vector
row vector
Transpose
Vector :
Matrix:
Creating Vectors
Create vector with equally spaced intervals
>> x=0:0.5:pi
x =
0 0.5000 1.0000 1.5000 2.0000 2.5000 3.0000
Create vector with n equally spaced intervals
>> x=logspace(1,2,7)
x =
10.0000 14.6780 21.5443 68.1292
100.0000
Note:MATLABusespitorepresent,usesiorjtorepresent
imaginaryunit
Creating Matrices
THANK YOU