LAB MAR Introduction of MATLAB - 2
LAB MAR Introduction of MATLAB - 2
3. Flow Control
4. Using of M-File
(5)
2 . Op e ra t or s (A ri th m et i c)
BODMAS (6)
E l em e n t b y e l e m en t Op e ra t o rs
7
Ma t la b R e l at i on a l Op e ra to r s
(8)
F l ow Con t ro l
While expression
Statements
End
Example:
3!=3x2!
4!=4x3!
5!=5x4!
F l ow Con t ro l
if expression
Statements
elseif expression
statements
else
Statements
end (8)
4 . Us in g of M- F il e
Click to create
a new M-File
• Extension “.m”
• A text file containing script or function or program to run
I m p or t in g d a t a
Importing excel sheet into the MATLAB and we can perform all mathematical
manipulations like
• Mean
• Mode
• Median
• Standard deviation
• Variance
• Range
• Min value
• Max value
I n tr o du c t io n t o Ro b o ts a nd Ro b o ti c s
Definitions
• The term: robot has come from the Czech word: robota, which means forced or
slave labourer
• In 1921, Karel Capek, a Czech playwright, used the term: robot first in his drama
named Rossum’s Universal Robots (R.U.R)