Basics of MATLAB-1

6
Basics of MATLAB-I Presented by T.S.L.V.Ayyarao

description

Basics of MATLAB

Transcript of Basics of MATLAB-1

Page 1: Basics of MATLAB-1

Basics of MATLAB-I

Presented byT.S.L.V.Ayyarao

Page 2: Basics of MATLAB-1

Outline

• Starting MATLAB• Using MATLAB as a calculator• Creating MATLAB variables• Matrix operations• Basic plotting

Page 3: Basics of MATLAB-1

Starting MATLAB

Page 4: Basics of MATLAB-1

Using MATLAB as a calculator

>> a=2*3a =6

Symbol Operation Example

+ Addition 7+3

- Subtraction 3-2

* Multiplication 3*7

/ Division 3/7

Page 5: Basics of MATLAB-1

Creating MATLAB variables

Variable name = value(expression)Example:>> x=2x = 2>> x=y^2+y+3

Page 6: Basics of MATLAB-1

Matrix operations

• Matrix operations can be performedExample:>> A=[1 0;0 1]A = 1 0 0 1