Department of Mechatronics Engineering Department of Mechatronics Engineering
Department of Mechatronics Engineering Department of Mechatronics Engineering
DEPARTMENT OF MECHATRONICS
ENGINEERING
ENGINEERING
MTE-328
CONTROL SYSTEM
LAB NO # 1
(MATRICES AND OPERATIONS)
ROLL NO: 1
NAME: AHMED KAMRAN
REG NO: 16PWMCT0464
SEMESTER: 6TH
SECTION: A
SUBMITTED TO DR. RIAZ AKBAR
(Director, Department of Mechatronics Engineering, UET Peshawar)
LAB TASK # 1
(TRIGONOMETRIC FUNCTION)
1. For performing a trigonometric functions in matlab just the name of the function with a
number in brackets is used ; sin() , cos() , tan() .
2. For inverse trigonometric functions these commands are used ; atan() , acos() ,asin().
LAB TASK # 2
(4x4 MATRICES)
1. For making two 4x4 matrices these commands are used.
2. For adding , subtracting , multiplication and for dimensions these commands are used .
LAB TASK # 3
(CONTROL FLOATING POINT)
1. This command is used to control the output’s length after decimal point.
Matrix Operations
1. Adding 2 3x4 matrix :
4. Rank of a matrix .
8. Diagonal of matrix