Basics of MATLAB-I
Presented byT.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*3a =6
Symbol Operation Example
+ Addition 7+3
- Subtraction 3-2
* Multiplication 3*7
/ Division 3/7
Creating MATLAB variables
Variable name = value(expression)Example:>> x=2x = 2>> x=y^2+y+3
Matrix operations
• Matrix operations can be performedExample:>> A=[1 0;0 1]A = 1 0 0 1
Top Related