Sunteți pe pagina 1din 6

Basics of MATLAB-I

Presented by
T.S.L.V.Ayyarao

Outline

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

Starting MATLAB

Using MATLAB as a
calculator
>> a=2*3
a =6
Symbol

Operation

Example

Addition

7+3

Subtraction

3-2

Multiplicatio
n

3*7

Division

3/7

Creating MATLAB variables


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

Matrix operations
Matrix operations can be performed
Example:
>> A=[1 0;0 1]
A=
1
0
0
1

S-ar putea să vă placă și