45 Pages
English

# matlab-tutorial

Learn all about the services we offer

Description

Matlab tutorialNathanael FillmoreSeptember 20092. Matlab as a gloriﬁed graphing calculator.3. Matlab as a programming language.4. Demo.Note: 1 “” 2 “” 3.Outline1. Matlab as a gloriﬁed calculator.3. Matlab as a programming language.4. Demo.Note: 1 “” 2 “” 3.Outline1. Matlab as a gloriﬁed calculator.2. Matlab as a gloriﬁed graphing calculator.4. Demo.Note: 1 “” 2 “” 3.Outline1. Matlab as a gloriﬁed calculator.2. Matlab as a gloriﬁed graphing calculator.3. Matlab as a programming language.Note: 1 “” 2 “” 3.Outline1. Matlab as a gloriﬁed calculator.2. Matlab as a gloriﬁed graphing calculator.3. Matlab as a programming language.4. Demo.Outline1. Matlab as a gloriﬁed calculator.2. Matlab as a gloriﬁed graphing calculator.3. Matlab as a programming language.4. Demo.Note: 1 “” 2 “” 3.I Trigonometric:>> sin(pi/2)ans =1I Exponential:>> log(exp(1))ans =1Matlab as a gloriﬁed calculator: scalarsWhatever you think should work will probably work:I Arithmetic:>> (2+3 4)/6*ans =2.3333I Exponential:>> log(exp(1))ans =1Matlab as a gloriﬁed calculator: scalarsWhatever you think should work will probably work:I Arithmetic:>> (2+3 4)/6*ans =2.3333I Trigonometric:>> sin(pi/2)ans =1Matlab as a gloriﬁed calculator: scalarsWhatever you think should work will probably work:I Arithmetic:>> (2+3 4)/6*ans =2.3333I Trigonometric:>> sin(pi/2)ans =1I Exponential:>> log(exp(1))ans =1I Column vectors:And access their ...

Subjects

##### Formal sciences

Informations

Matlab
tutor
Nathanael Fillmore September 2009
ial
Ma2.gasabaltgdeirollaucalotarhpnicgabasapror.3.MatlgnalegaumarggnimteNo:1.D.4o.em
ied
glor
1.
calculator.
Matlab
Outline
a
as
3.2
.3aMaugnalgnmeD.4.egapasabtlmiamgrro
a
as
calculator.
gloried
.
Matlab
Outline
as
a
2.
Matlab
calculator.
1.
gloried
graphing
te:1o.No32
Outline
1.
2.
3.
Matlab
Matlab
Matlab
as
as
as
a
a
a
gloried calculator.
gloried graphing calculator.
programming
language.
4N.toD:eem1o.23.
Outline
1.
2.
3.
4.
Matlab
Matlab
Matlab
Demo.
as
as
as
a
a
a
gloried calculator.
gloried graphing calculator.
programming
language.
oNet:123.
Outline
1.Matlab as a gloried calculator.
2.Matlab as a gloried graphing calculator.
3.Matlab as a programming language.
4.Demo.
Note: 1 “ 2 “ 3.
I>>olai:l(p)1(gxe=1
>> (2+3*4)/6 ans = 2.3333
)ans
will
probably
work:
Matlab as a gloried calculator: scalars
Arithmetic:
Whatever you think
should
work
ITrigonortem>:cinis>/ip(an2)1Is=poExntne
Matlab as a gloried calculator: scalars
Whatever you think should work will probably work:
I
IpoExp(1))ans=1
>> (2+3*4)/6 ans = 2.3333
Arithmetic:
I
Trigonometric:
>> sin(pi/2) ans = 1
entnai:l>>ol(gxe
Matlab as a gloried calculator: scalars
Whatever you think should work will probably work:
I
I
I
Arithmetic:
>> (2+3*4)/6 ans = 2.3333
Trigonometric:
>> sin(pi/2) ans = 1
Exponential:
>> log(exp(1)) ans = 1
You
I
can also dene
Row vectors:
vectors
vectors:
Matlab as a gloried
calculator:
4
8
>> x=[2 x =
2
8]
4
=sna=sna842=sna
vectors
4
>> x=[2 4 8] x = 2
I
Column vectors: >> x=[2;4;8] x =
8
2 4 8
calculator:
Matlab as a gloried
sn2=84
You can also dene vectors: IRow vectors: