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](https://reader036.fdocuments.net/reader036/viewer/2022072004/563dbb63550346aa9aacbe83/html5/thumbnails/1.jpg)
Basics of MATLAB-I
Presented byT.S.L.V.Ayyarao
![Page 2: Basics of MATLAB-1](https://reader036.fdocuments.net/reader036/viewer/2022072004/563dbb63550346aa9aacbe83/html5/thumbnails/2.jpg)
Outline
• Starting MATLAB• Using MATLAB as a calculator• Creating MATLAB variables• Matrix operations• Basic plotting
![Page 3: Basics of MATLAB-1](https://reader036.fdocuments.net/reader036/viewer/2022072004/563dbb63550346aa9aacbe83/html5/thumbnails/3.jpg)
Starting MATLAB
![Page 4: Basics of MATLAB-1](https://reader036.fdocuments.net/reader036/viewer/2022072004/563dbb63550346aa9aacbe83/html5/thumbnails/4.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022072004/563dbb63550346aa9aacbe83/html5/thumbnails/5.jpg)
Creating MATLAB variables
Variable name = value(expression)Example:>> x=2x = 2>> x=y^2+y+3
![Page 6: Basics of MATLAB-1](https://reader036.fdocuments.net/reader036/viewer/2022072004/563dbb63550346aa9aacbe83/html5/thumbnails/6.jpg)
Matrix operations
• Matrix operations can be performedExample:>> A=[1 0;0 1]A = 1 0 0 1