Professional Documents
Culture Documents
Lecture 1-2
Lecture 1-2
Prepared by
Dr. Hazem Hassan Ali Sayed
Assessment:
1) Assignment (1) [ P1, P2, P3, P4, M1, M2, D1 and
D2]
2) Assignment (2) [P5, P6, P7, P8, M3, M4, D3 and
D4]
Textbooks:
https://www.mathworks.com
Attention, please attend all lectures to know the full solution
for each problem.
الرجبء حضور جميع المحبضرات لمعرفة تفبصيل الحل ببلكبمل و اهم النقبط الخبصة بكل مسئلة
1
Modelling and Simulation By Dr. Hazem Hassan Ali
2
Modelling and Simulation By Dr. Hazem Hassan Ali
Flowchart:
The first design of flowchart goes back to 1945 which was designed
by John Von Neumann. Unlike an algorithm, Flowchart uses
different symbols to design a solution to a problem. It is another
commonly used programming tool. By looking at a Flowchartone can
understand the operations and sequence of operations performed in a
system. Flowchart is often considered as a blueprint of a design used
for solving a specific problem.
Flowchart is diagrammatic /Graphical representation of sequence of
steps to solve a problem. To draw a flowchart following standard
symbols are use:
3
Modelling and Simulation By Dr. Hazem Hassan Ali
1 For
4
Modelling and Simulation By Dr. Hazem Hassan Ali
2 While
2- Examples:
Example # 1
5
Modelling and Simulation By Dr. Hazem Hassan Ali
Example # 2
Example # 3
6
Modelling and Simulation By Dr. Hazem Hassan Ali
Example # 4
Example # 5
7
Modelling and Simulation By Dr. Hazem Hassan Ali
Example # 6
Example # 7
8
Modelling and Simulation By Dr. Hazem Hassan Ali
Example # 8
What is GUI:
A graphical user interface (GUI) is a graphical display that contains
devices, or components, that enable a user to perform interactive
tasks.
What is simulink:
Simulink is a graphical extension to MATLAB for modeling and
simulation of systems. One of the main advantages of Simulink is the
ability to model a nonlinear system, which a transfer function is
unable to do. Another advantage of Simulink is the ability to take on
initial conditions.
9
Modelling and Simulation By Dr. Hazem Hassan Ali
Example#1
Find the current in branch RL=15 ohms in Matlab/Simulink ?
Example#2
Find the voltage between V2 dc supply and R1 in Matlab/Simulink?
Example#3
Find the current in the shown branches in Matlab/Simulink ?
Example#4
Find the max power transfer in Matlab/Simulink ?
10