Documente Academic
Documente Profesional
Documente Cultură
Lab # 02
Mathematical Logical and Rational operators in Simulink
Objective:
To explore logical and rational blocks using Simulink tool-box
Introduction:
Logical operators:
In digital electronics the logic gates are the certain type of
physical devices basically used to express the Boolean functions. The truth table is a tabular
representation of logical expression. Logic operators are AND, OR, NOT, NOR, XOR and
XNOR.
Relational operators:
Relational operators are used to compare values, relational operators such as, ==, <,>, =< ,>=
Procedure:
1) Firstly, we open MATLAB and open Simulink blank model.
2) Then we open its library, from which we opened math operations library and take some
blocks of math operations to perform different operations.
Operations Performed:
Absolute operator:
Lab Instructor
Engr. Saqib Zafar University of engineering and technology, Lahore
Fall 2019 Mechatronics and control engineering MCT-331L
Addition Operator:
Product operator:
Reciprocal Operator:
Fig2.4(reciprocal operator)
Unary Minus:
Lab Instructor
Engr. Saqib Zafar University of engineering and technology, Lahore
Fall 2019 Mechatronics and control engineering MCT-331L
Complex to magnitude-angle:
Exponential operator:
Fig3.1(exponential function)
Lab Instructor
Engr. Saqib Zafar University of engineering and technology, Lahore
Fall 2019 Mechatronics and control engineering MCT-331L
Relational operator:
AND operation:
Lab Instructor
Engr. Saqib Zafar University of engineering and technology, Lahore
Fall 2019 Mechatronics and control engineering MCT-331L
NAND Operator:
Lab Task:
Lab Instructor
Engr. Saqib Zafar University of engineering and technology, Lahore