Top Banner
Simulink Mathematical Operations by Dr. Amin Danial Asham
17

Simulink Mathematical Operations by Dr. Amin Danial Asham.

Jan 20, 2018

Download

Documents

Mathematical Operations Summation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Simulink Mathematical Operations by Dr. Amin Danial Asham.

SimulinkMathematical Operations

byDr. Amin Danial Asham

Page 2: Simulink Mathematical Operations by Dr. Amin Danial Asham.

References

MATLAB Help

Telemark University College - Department of Electrical Engineering, Information Technology and Cybernetics – Tutorial

Simulink - Getting Started Guide

UNIVERSITY OF NEWCASTLE UPON TYNE - School of Electrical, Electronic and Computer Engineering - Matlab/Simulink Tutorial

Page 3: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsSummation

Page 4: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsSummation

Double click the “Add Block”, the Main pane of the Sum block dialog box appears.

The number of inputs and the sign of each input can be set.

Page 5: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsSubtraction

Page 6: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsMultiplication

Page 7: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsMultiplication

Double click the “Product Block”, the Main pane of the block dialog box appears..

The number of inputs can be set.

Page 8: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsDivision

Page 9: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsMultiplication-Division

Double click the “Product Block”, the Main pane of the block dialog box appears.. The number of inputs and the operation (* or /) for each input can be set.

Page 10: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsCalculating a mathematical expression5 𝑥+

𝑦10 ,𝑥=3∧𝑦=5

Page 11: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsCalculating a mathematical expression5 (𝑥+6 𝑦 )+ z , 𝑥=2 , 𝑦=5 ,𝑎𝑛𝑑 𝑧=10

Page 12: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsSolving

5 𝑥+15=0Rearrange the equations as follows

5 𝑥=−15

Double Click

Can be non-scalar

Page 13: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsSolving a system of first order equations

, Rearrange the equations as follows

,

Page 14: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsMatrix Operations

Double Click the Constant BlocksThe constant can be a non-scalar quantity

Page 15: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsMatrix Operations

𝑐 𝑨𝑩− 1

Page 16: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Mathematical OperationsSolving a system of equations in Matrix Form

(5 31 1)(𝑥𝑦 )+(−50 )=(00)

Page 17: Simulink Mathematical Operations by Dr. Amin Danial Asham.

Thanks