SlideShare ist ein Scribd-Unternehmen logo
1 von 11
11
Lecture Series – 8
Solving Differential equations
using SIMULINK
Shameer Koya
Solve the differential equation
 Note: The input is 1 after t> 0
 Input - step function - stepping time is not
t=1 but t=0
 Initial Condition is 0
2
2 1, 0.
(0) 0.
dx
x t
dt
x
   

3
Solution
 The equation is where
 Instead of differentiation, we do the reverse
operation, integration, to solve the equations
 In SIMULINK means integration
 Input to the integrator is and output x
 set up the right hand side and connect the everything
to the input of the integrator.
2 1Dx x  
d
D
dt

1
s
dx
Dx
dt

4
 Another issue that we have
not considered is initial
condition.
 As you know every
differential equation should
have initial conditions given.
 The default value in
SIMULINK is zero.
 To change that click the
integrator.
5
Double-click
Initial condition
 If you want to see both the input and output at the same time, use Mux
(multiplexer) block, which you can find under Signals and Systems
block library
6
Higher order differential equation
 Second order equation
 To set up the right-hand side two integrators are needed
 The input to the first integrator is the second derivative
and its output is
 second integrator producing x(t) at its output
7
2
2
5 9
d x dx
x
dt dt
  
d x
dt
2
2
dx
dt
(0) 2
(0) 2
dx
x
dt
x
  

&
 Assume that u(t) = 0, that is, there is no input.
8
2
2
5 9
d x dx
x
dt dt
  
 Set the initial conditions of the integrator
9
Ouput
10
11
Thanks
Questions ??

Weitere ähnliche Inhalte

Was ist angesagt?

Tema 5 grafcet ejercicios. arturo gil
Tema 5  grafcet ejercicios. arturo gilTema 5  grafcet ejercicios. arturo gil
Tema 5 grafcet ejercicios. arturo gil
Fernando Cabrera
 
Robotics: Introduction to Kinematics
Robotics: Introduction to KinematicsRobotics: Introduction to Kinematics
Robotics: Introduction to Kinematics
Damian T. Gordon
 
Chevrotronica Ii
Chevrotronica IiChevrotronica Ii
Chevrotronica Ii
guest07963
 

Was ist angesagt? (20)

PID control dynamics of a robotic arm manipulator with two degrees of freedom.
PID control dynamics of a robotic arm manipulator with two degrees of freedom.PID control dynamics of a robotic arm manipulator with two degrees of freedom.
PID control dynamics of a robotic arm manipulator with two degrees of freedom.
 
Logic families
Logic familiesLogic families
Logic families
 
CONTADOR BINARIO 8 BITS
CONTADOR BINARIO 8 BITSCONTADOR BINARIO 8 BITS
CONTADOR BINARIO 8 BITS
 
Displacement measurement
Displacement measurementDisplacement measurement
Displacement measurement
 
sensors
sensorssensors
sensors
 
Bcd to 7 segment display
Bcd to 7 segment displayBcd to 7 segment display
Bcd to 7 segment display
 
programmable logic controller presentation
programmable logic controller presentationprogrammable logic controller presentation
programmable logic controller presentation
 
Tema 5 grafcet ejercicios. arturo gil
Tema 5  grafcet ejercicios. arturo gilTema 5  grafcet ejercicios. arturo gil
Tema 5 grafcet ejercicios. arturo gil
 
Robotics: Introduction to Kinematics
Robotics: Introduction to KinematicsRobotics: Introduction to Kinematics
Robotics: Introduction to Kinematics
 
Control Engineering "Force Voltage Analogy"
Control Engineering "Force Voltage Analogy"Control Engineering "Force Voltage Analogy"
Control Engineering "Force Voltage Analogy"
 
Chevrotronica Ii
Chevrotronica IiChevrotronica Ii
Chevrotronica Ii
 
Ecl
EclEcl
Ecl
 
Servo amplifier
Servo amplifierServo amplifier
Servo amplifier
 
Modelado de Grafcet.pdf
Modelado de Grafcet.pdfModelado de Grafcet.pdf
Modelado de Grafcet.pdf
 
ROBOTICS & DESIGN (Introduction of Robots) EEN-429
ROBOTICS & DESIGN (Introduction of Robots) EEN-429ROBOTICS & DESIGN (Introduction of Robots) EEN-429
ROBOTICS & DESIGN (Introduction of Robots) EEN-429
 
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMINGROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
 
Actuators
ActuatorsActuators
Actuators
 
1 introduction of mechatronics
1 introduction of mechatronics1 introduction of mechatronics
1 introduction of mechatronics
 
Lecture 2 Servomotors - Basics & Working
Lecture 2   Servomotors - Basics & WorkingLecture 2   Servomotors - Basics & Working
Lecture 2 Servomotors - Basics & Working
 
Matlab simulink introduction
Matlab simulink introductionMatlab simulink introduction
Matlab simulink introduction
 

Andere mochten auch

Andere mochten auch (20)

Simulink
SimulinkSimulink
Simulink
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
Brief Introduction to Matlab
Brief  Introduction to MatlabBrief  Introduction to Matlab
Brief Introduction to Matlab
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Matlab Presentation
Matlab PresentationMatlab Presentation
Matlab Presentation
 
An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginners
 
Matlab ppt
Matlab pptMatlab ppt
Matlab ppt
 
Induction Motor Tests Using MATLAB/Simulink
Induction Motor Tests Using MATLAB/SimulinkInduction Motor Tests Using MATLAB/Simulink
Induction Motor Tests Using MATLAB/Simulink
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Matlab m files and scripts
Matlab m files and scriptsMatlab m files and scripts
Matlab m files and scripts
 
Matlab matrices and arrays
Matlab matrices and arraysMatlab matrices and arrays
Matlab matrices and arrays
 
Matlab ploting
Matlab plotingMatlab ploting
Matlab ploting
 
Matlab complex numbers
Matlab complex numbersMatlab complex numbers
Matlab complex numbers
 
Introto pl cs
Introto pl csIntroto pl cs
Introto pl cs
 
Microprocessor and Microcontroller lec4
Microprocessor and Microcontroller lec4Microprocessor and Microcontroller lec4
Microprocessor and Microcontroller lec4
 
Matlab dc circuit analysis
Matlab dc circuit analysisMatlab dc circuit analysis
Matlab dc circuit analysis
 
Matlab polynimials and curve fitting
Matlab polynimials and curve fittingMatlab polynimials and curve fitting
Matlab polynimials and curve fitting
 

Ähnlich wie Mat lab solving equations simulink

Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system
CT Sabariah Salihin
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
Shankar Gangaju
 

Ähnlich wie Mat lab solving equations simulink (20)

Simulink4 beginners
Simulink4 beginnersSimulink4 beginners
Simulink4 beginners
 
Plc trilogi5 purdue
Plc trilogi5 purduePlc trilogi5 purdue
Plc trilogi5 purdue
 
Automation and Robotics 20ME51I_Week_2_Practicals.pdf
Automation and Robotics 20ME51I_Week_2_Practicals.pdfAutomation and Robotics 20ME51I_Week_2_Practicals.pdf
Automation and Robotics 20ME51I_Week_2_Practicals.pdf
 
Chapter 1 number and code system sss
Chapter 1 number and code system sssChapter 1 number and code system sss
Chapter 1 number and code system sss
 
Fuzzy control design_tutorial
Fuzzy control design_tutorialFuzzy control design_tutorial
Fuzzy control design_tutorial
 
Control chap9
Control chap9Control chap9
Control chap9
 
Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system
 
Modeling and simulation
Modeling and simulationModeling and simulation
Modeling and simulation
 
Differential equation
Differential equationDifferential equation
Differential equation
 
Render 09
Render 09Render 09
Render 09
 
Unit ii ca--arithmetic
Unit ii ca--arithmeticUnit ii ca--arithmetic
Unit ii ca--arithmetic
 
digital systems and information
digital systems and informationdigital systems and information
digital systems and information
 
Arithmetic Operations
Arithmetic OperationsArithmetic Operations
Arithmetic Operations
 
Arithmetic Process in Computer Systems
Arithmetic Process in Computer SystemsArithmetic Process in Computer Systems
Arithmetic Process in Computer Systems
 
Encoding Schemes for Multipliers
Encoding Schemes for MultipliersEncoding Schemes for Multipliers
Encoding Schemes for Multipliers
 
Number System
Number SystemNumber System
Number System
 
Plc fatek
Plc fatekPlc fatek
Plc fatek
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
 
Multiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartMultiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchart
 
Philio_pan06_User manual
Philio_pan06_User manualPhilio_pan06_User manual
Philio_pan06_User manual
 

Mehr von Ameen San

Mehr von Ameen San (20)

Application of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage RegulationApplication of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage Regulation
 
Distribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss CalculationDistribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss Calculation
 
Load Characteristics
Load CharacteristicsLoad Characteristics
Load Characteristics
 
ELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGYELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGY
 
Stepper motor
Stepper motor Stepper motor
Stepper motor
 
PLC application
PLC applicationPLC application
PLC application
 
PLC arithmatic functions
PLC arithmatic functionsPLC arithmatic functions
PLC arithmatic functions
 
PLC data types and addressing
PLC data types and addressingPLC data types and addressing
PLC data types and addressing
 
PLC Counters
PLC CountersPLC Counters
PLC Counters
 
PLC Traffic Light Control
PLC Traffic Light ControlPLC Traffic Light Control
PLC Traffic Light Control
 
PLC Timers
PLC TimersPLC Timers
PLC Timers
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal Relays
 
PLC Intro to programming
PLC Intro to programmingPLC Intro to programming
PLC Intro to programming
 
PLC Logic Circuits
PLC Logic CircuitsPLC Logic Circuits
PLC Logic Circuits
 
PLC input and output devices
PLC input and output devices PLC input and output devices
PLC input and output devices
 
PLC Applications
PLC ApplicationsPLC Applications
PLC Applications
 
Protection Devices and the Lightning
Protection Devices and the LightningProtection Devices and the Lightning
Protection Devices and the Lightning
 
Protection
ProtectionProtection
Protection
 
Relays
RelaysRelays
Relays
 
Circuit Breakers
Circuit BreakersCircuit Breakers
Circuit Breakers
 

Kürzlich hochgeladen

Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 

Kürzlich hochgeladen (20)

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 

Mat lab solving equations simulink

  • 1. 11 Lecture Series – 8 Solving Differential equations using SIMULINK Shameer Koya
  • 2. Solve the differential equation  Note: The input is 1 after t> 0  Input - step function - stepping time is not t=1 but t=0  Initial Condition is 0 2 2 1, 0. (0) 0. dx x t dt x     
  • 3. 3 Solution  The equation is where  Instead of differentiation, we do the reverse operation, integration, to solve the equations  In SIMULINK means integration  Input to the integrator is and output x  set up the right hand side and connect the everything to the input of the integrator. 2 1Dx x   d D dt  1 s dx Dx dt 
  • 4. 4
  • 5.  Another issue that we have not considered is initial condition.  As you know every differential equation should have initial conditions given.  The default value in SIMULINK is zero.  To change that click the integrator. 5 Double-click Initial condition
  • 6.  If you want to see both the input and output at the same time, use Mux (multiplexer) block, which you can find under Signals and Systems block library 6
  • 7. Higher order differential equation  Second order equation  To set up the right-hand side two integrators are needed  The input to the first integrator is the second derivative and its output is  second integrator producing x(t) at its output 7 2 2 5 9 d x dx x dt dt    d x dt 2 2 dx dt (0) 2 (0) 2 dx x dt x     &
  • 8.  Assume that u(t) = 0, that is, there is no input. 8 2 2 5 9 d x dx x dt dt   
  • 9.  Set the initial conditions of the integrator 9