SlideShare a Scribd company logo
STATE SPACE MODELS
MATLAB Tutorial
Why State Space Models
 The state space model represents a physical
system as n first order differential
equations. This form is better suited for
computer simulation than an nth order input-
output differential equation.
Basics
 Vector matrix format generally is given by:
where y is the output equation, and x is the
state vector
PARTS OF A STATE SPACE
REPRESENTATION
 State Variables: a subset of system variables which
if known at an initial time t0 along with subsequent
inputs are determined for all time t>t0+
 State Equations: n linearly independent first order
differential equations relating the first derivatives of
the state variables to functions of the state variables
and the inputs.
 Output equations: algebraic equations relating the
state variables to the system outputs.
EXAMPLE
 The equation gathered from the free body diagram
is: mx" + bx' + kx - f(t) = 0
 Substituting the definitions of the states into the
equation results in:
mv' + bv + kx - f(t) = 0
 Solving for v' gives the state equation:
v' = (-b/m) v + (-k/m) x + f(t)/m
 The desired output is for the position, x, so:
y = x
Cont…
 Now the derivatives of the state variables are
in terms of the state variables, the inputs,
and constants.
x' = v
v' = (-k/m) x + (-b/m) v + f(t)/m
y = x
PUTTING INTO VECTOR-MATRIX
FORM
 Our state vector consists of two variables, x
and v so our vector-matrix will be in the form:
Explanation
 The first row of A and the first row of B are
the coefficients of the first state equation for
x'. Likewise the second row of A and the
second row of B are the coefficients of the
second state equation for v'. C and D are the
coefficients of the output equation for y.
EXACT REPRESENTATION
HOW TO INPUT THE STATE
SPACE MODEL INTO MATLAB
 In order to enter a state space model into MATLAB,
enter the coefficient matrices A, B, C, and D into
MATLAB. The syntax for defining a state space
model in MATLAB is:
statespace = ss(A, B, C, D)
where A, B, C, and D are from the standard vector-
matrix form of a state space model.
Example
 For the sake of example, lets take m = 2, b = 5, and k = 3.
 >> m = 2;
 >> b = 5;
 >> k = 3;
 >> A = [ 0 1 ; -k/m -b/m ];
 >> B = [ 0 ; 1/m ];
 >> C = [ 1 0 ];
 >> D = 0;
 >> statespace_ss = ss(A, B, C, D)
Output
 This assigns the state space model under
the name statespace_ss and output the
following:
 a =
x1 x2
x1 0 1
x2 -1.5 -2.5
Cont…
 b =
u1
x1 0
x2 0.5
c =
x1 x2
y1 1 0
Cont…
 d =
u1
y1 0
Continuous-time model.
EXTRACTING A, B, C, D
MATRICES FROM A STATE
SPACE MODEL
 In order to extract the A, B, C, and D
matrices from a previously defined state
space model, use MATLAB's ssdata
command.
 [A, B, C, D] = ssdata(statespace)
where statespace is the name of the state
space system.
Example
 >> [A, B, C, D] = ssdata(statespace_ss)
 The MATLAB output will be:
 A =

 -2.5000 -0.3750
4.0000 0
Cont…
B =
0.2500
0
C =
0 0.5000
D =
0
STEP RESPONSE USING THE
STATE SPACE MODEL
 Once the state space model is entered into MATLAB it is easy
to calculate the response to a step input. To calculate the
response to a unit step input, use:
 step(statespace)
 where statespace is the name of the state space system.
 For steps with magnitude other than one, calculate the step
response using:
 step(u * statespace)
 where u is the magnitude of the step and statespace is the
name of the state space system.
State space models

More Related Content

What's hot

State equations for physical systems
State equations for physical systemsState equations for physical systems
State equations for physical systems
Sarah Krystelle
 
Modern Control System (BE)
Modern Control System (BE)Modern Control System (BE)
Modern Control System (BE)
PRABHAHARAN429
 
State estimation
State estimationState estimation
State estimation
Vipin Pandey
 
Unit step function
Unit step functionUnit step function
Unit step function
Kifaru Malale
 
State space analysis, eign values and eign vectors
State space analysis, eign values and eign vectorsState space analysis, eign values and eign vectors
State space analysis, eign values and eign vectors
Shilpa Shukla
 
Stability Analysis of Discrete System
Stability Analysis of Discrete SystemStability Analysis of Discrete System
Stability Analysis of Discrete System
Khalaf Gaeid Alshammery
 
Digital control systems (dcs) lecture 18-19-20
Digital control systems (dcs) lecture 18-19-20Digital control systems (dcs) lecture 18-19-20
Digital control systems (dcs) lecture 18-19-20
Ali Rind
 
1 phase semiconverter
1 phase semiconverter1 phase semiconverter
1 phase semiconverter
Raviraj solanki
 
State space analysis
State space analysisState space analysis
State space analysis
SatishPatel129
 
Lyapunov stability analysis
Lyapunov stability analysisLyapunov stability analysis
Lyapunov stability analysis
VanshVarshney
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
Nazrul Kabir
 
Z transfrm ppt
Z transfrm pptZ transfrm ppt
Z transfrm ppt
SWATI MISHRA
 
Polar Plot
Polar PlotPolar Plot
Polar Plot
Hussain K
 
Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysis
divyanshuprakashrock
 
Root locus
Root locusRoot locus
Gauss Seidel Method of Power Flow
Gauss Seidel Method of Power FlowGauss Seidel Method of Power Flow
Gauss Seidel Method of Power Flow
YunusAhmad9
 
Gauss seidel method
Gauss seidel methodGauss seidel method
Gauss seidel method
Revathi Subramaniam
 
Meeting w4 chapter 2 part 2
Meeting w4   chapter 2 part 2Meeting w4   chapter 2 part 2
Meeting w4 chapter 2 part 2
mkazree
 
state space modeling of electrical system
state space modeling of electrical systemstate space modeling of electrical system
state space modeling of electrical system
Mirza Baig
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
Revathi Subramaniam
 

What's hot (20)

State equations for physical systems
State equations for physical systemsState equations for physical systems
State equations for physical systems
 
Modern Control System (BE)
Modern Control System (BE)Modern Control System (BE)
Modern Control System (BE)
 
State estimation
State estimationState estimation
State estimation
 
Unit step function
Unit step functionUnit step function
Unit step function
 
State space analysis, eign values and eign vectors
State space analysis, eign values and eign vectorsState space analysis, eign values and eign vectors
State space analysis, eign values and eign vectors
 
Stability Analysis of Discrete System
Stability Analysis of Discrete SystemStability Analysis of Discrete System
Stability Analysis of Discrete System
 
Digital control systems (dcs) lecture 18-19-20
Digital control systems (dcs) lecture 18-19-20Digital control systems (dcs) lecture 18-19-20
Digital control systems (dcs) lecture 18-19-20
 
1 phase semiconverter
1 phase semiconverter1 phase semiconverter
1 phase semiconverter
 
State space analysis
State space analysisState space analysis
State space analysis
 
Lyapunov stability analysis
Lyapunov stability analysisLyapunov stability analysis
Lyapunov stability analysis
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Z transfrm ppt
Z transfrm pptZ transfrm ppt
Z transfrm ppt
 
Polar Plot
Polar PlotPolar Plot
Polar Plot
 
Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysis
 
Root locus
Root locusRoot locus
Root locus
 
Gauss Seidel Method of Power Flow
Gauss Seidel Method of Power FlowGauss Seidel Method of Power Flow
Gauss Seidel Method of Power Flow
 
Gauss seidel method
Gauss seidel methodGauss seidel method
Gauss seidel method
 
Meeting w4 chapter 2 part 2
Meeting w4   chapter 2 part 2Meeting w4   chapter 2 part 2
Meeting w4 chapter 2 part 2
 
state space modeling of electrical system
state space modeling of electrical systemstate space modeling of electrical system
state space modeling of electrical system
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 

Viewers also liked

Lec2 state space
Lec2 state spaceLec2 state space
Lec2 state space
Praveen Kumar
 
Week 15 state space rep may 25 2016 final
Week 15 state space rep   may 25  2016 finalWeek 15 state space rep   may 25  2016 final
Week 15 state space rep may 25 2016 final
Charlton Inao
 
State space analysis shortcut rules
State space analysis shortcut rulesState space analysis shortcut rules
State space analysis shortcut rules
Prajakta Pardeshi
 
State Space Search(2)
State Space Search(2)State Space Search(2)
State Space Search(2)
luzenith_g
 
linear algebra in control systems
linear algebra in control systemslinear algebra in control systems
linear algebra in control systems
Ganesh Bhat
 
The Space of Representation
The Space of RepresentationThe Space of Representation
The Space of Representation
World Without Wars (voluntary organisation)
 
Digital control and state variable methods by m gopal
Digital control and state variable methods by m gopalDigital control and state variable methods by m gopal
Digital control and state variable methods by m gopal
Tulasi Chowdary
 
Solved problems 1(control volume)
Solved problems  1(control volume)Solved problems  1(control volume)
Solved problems 1(control volume)
VENKITARAJ P
 
The Controller Design For Linear System: A State Space Approach
The Controller Design For Linear System: A State Space ApproachThe Controller Design For Linear System: A State Space Approach
The Controller Design For Linear System: A State Space Approach
Yang Hong
 
Lab no.07
Lab no.07Lab no.07
DIODES
DIODESDIODES
Chap1see4113
Chap1see4113Chap1see4113
Chap1see4113
Shaiful Nubairi
 
Systems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State ErrorsSystems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State Errors
JARossiter
 
State space search
State space search State space search
State space search
Timothy Makgato
 
6주차
6주차6주차
6주차
Sangho Lee
 
Diodes
DiodesDiodes
Domain State model OOAD
Domain State model  OOADDomain State model  OOAD
Domain State model OOAD
Raghu Kumar
 
Er. rahul sharma circuit breaker
Er. rahul sharma circuit breakerEr. rahul sharma circuit breaker
Er. rahul sharma circuit breaker
Rahul Ruddra
 
Diodes
DiodesDiodes
Diodes
Soujanya Roy
 
5.state diagrams
5.state diagrams5.state diagrams
5.state diagrams
APU
 

Viewers also liked (20)

Lec2 state space
Lec2 state spaceLec2 state space
Lec2 state space
 
Week 15 state space rep may 25 2016 final
Week 15 state space rep   may 25  2016 finalWeek 15 state space rep   may 25  2016 final
Week 15 state space rep may 25 2016 final
 
State space analysis shortcut rules
State space analysis shortcut rulesState space analysis shortcut rules
State space analysis shortcut rules
 
State Space Search(2)
State Space Search(2)State Space Search(2)
State Space Search(2)
 
linear algebra in control systems
linear algebra in control systemslinear algebra in control systems
linear algebra in control systems
 
The Space of Representation
The Space of RepresentationThe Space of Representation
The Space of Representation
 
Digital control and state variable methods by m gopal
Digital control and state variable methods by m gopalDigital control and state variable methods by m gopal
Digital control and state variable methods by m gopal
 
Solved problems 1(control volume)
Solved problems  1(control volume)Solved problems  1(control volume)
Solved problems 1(control volume)
 
The Controller Design For Linear System: A State Space Approach
The Controller Design For Linear System: A State Space ApproachThe Controller Design For Linear System: A State Space Approach
The Controller Design For Linear System: A State Space Approach
 
Lab no.07
Lab no.07Lab no.07
Lab no.07
 
DIODES
DIODESDIODES
DIODES
 
Chap1see4113
Chap1see4113Chap1see4113
Chap1see4113
 
Systems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State ErrorsSystems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State Errors
 
State space search
State space search State space search
State space search
 
6주차
6주차6주차
6주차
 
Diodes
DiodesDiodes
Diodes
 
Domain State model OOAD
Domain State model  OOADDomain State model  OOAD
Domain State model OOAD
 
Er. rahul sharma circuit breaker
Er. rahul sharma circuit breakerEr. rahul sharma circuit breaker
Er. rahul sharma circuit breaker
 
Diodes
DiodesDiodes
Diodes
 
5.state diagrams
5.state diagrams5.state diagrams
5.state diagrams
 

Similar to State space models

1. Introduction.pptx
1. Introduction.pptx1. Introduction.pptx
1. Introduction.pptx
SungaleliYuen
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
agnesdcarey33086
 
Control assignment#2
Control assignment#2Control assignment#2
Control assignment#2
cairo university
 
Ingeniería de control: Tema 3. El método del espacio de estados
Ingeniería de control: Tema 3. El método del espacio de estadosIngeniería de control: Tema 3. El método del espacio de estados
Ingeniería de control: Tema 3. El método del espacio de estados
SANTIAGO PABLO ALBERTO
 
B61301007 matlab documentation
B61301007 matlab documentationB61301007 matlab documentation
B61301007 matlab documentation
Manchireddy Reddy
 
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docxLab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
smile790243
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
anhlodge
 
MATLAB-Introd.ppt
MATLAB-Introd.pptMATLAB-Introd.ppt
MATLAB-Introd.ppt
kebeAman
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
BilawalBaloch1
 
Matlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMatlab-free course by Mohd Esa
Matlab-free course by Mohd Esa
Mohd Esa
 
Mechanical Engineering Assignment Help
Mechanical Engineering Assignment HelpMechanical Engineering Assignment Help
Mechanical Engineering Assignment Help
Matlab Assignment Experts
 
INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptx
Devaraj Chilakala
 
Servo systems
Servo systemsServo systems
Servo systems
cairo university
 
bobok
bobokbobok
Lec4 State Variable Models are used for modeing
Lec4 State Variable Models are used for modeingLec4 State Variable Models are used for modeing
Lec4 State Variable Models are used for modeing
ShehzadAhmed90
 
Python Homework Help
Python Homework HelpPython Homework Help
Python Homework Help
Python Homework Help
 
Matlab variables
Matlab variablesMatlab variables
Matlab variables
pramodkumar1804
 
Matlabtut1
Matlabtut1Matlabtut1
Matlabtut1
Vinnu Vinay
 
Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2
Scilab
 
Online Maths Assignment Help
Online Maths Assignment HelpOnline Maths Assignment Help
Online Maths Assignment Help
Maths Assignment Help
 

Similar to State space models (20)

1. Introduction.pptx
1. Introduction.pptx1. Introduction.pptx
1. Introduction.pptx
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
 
Control assignment#2
Control assignment#2Control assignment#2
Control assignment#2
 
Ingeniería de control: Tema 3. El método del espacio de estados
Ingeniería de control: Tema 3. El método del espacio de estadosIngeniería de control: Tema 3. El método del espacio de estados
Ingeniería de control: Tema 3. El método del espacio de estados
 
B61301007 matlab documentation
B61301007 matlab documentationB61301007 matlab documentation
B61301007 matlab documentation
 
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docxLab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
 
MATLAB-Introd.ppt
MATLAB-Introd.pptMATLAB-Introd.ppt
MATLAB-Introd.ppt
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Matlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMatlab-free course by Mohd Esa
Matlab-free course by Mohd Esa
 
Mechanical Engineering Assignment Help
Mechanical Engineering Assignment HelpMechanical Engineering Assignment Help
Mechanical Engineering Assignment Help
 
INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptx
 
Servo systems
Servo systemsServo systems
Servo systems
 
bobok
bobokbobok
bobok
 
Lec4 State Variable Models are used for modeing
Lec4 State Variable Models are used for modeingLec4 State Variable Models are used for modeing
Lec4 State Variable Models are used for modeing
 
Python Homework Help
Python Homework HelpPython Homework Help
Python Homework Help
 
Matlab variables
Matlab variablesMatlab variables
Matlab variables
 
Matlabtut1
Matlabtut1Matlabtut1
Matlabtut1
 
Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2
 
Online Maths Assignment Help
Online Maths Assignment HelpOnline Maths Assignment Help
Online Maths Assignment Help
 

More from gudlavalleru engineering college

Stld
StldStld
Ppt
PptPpt
Formula sheet for ec&ee
Formula sheet for ec&eeFormula sheet for ec&ee
Formula sheet for ec&ee
gudlavalleru engineering college
 
Engineering mathematics, fifth edition(1)
Engineering mathematics, fifth edition(1)Engineering mathematics, fifth edition(1)
Engineering mathematics, fifth edition(1)
gudlavalleru engineering college
 
Control systems
Control systemsControl systems
Induction motors
Induction motorsInduction motors
joseph sathvik
joseph sathvikjoseph sathvik
Ppt by joseph sathvik
Ppt by joseph sathvikPpt by joseph sathvik
Ppt by joseph sathvik
gudlavalleru engineering college
 
Power system-analysis-psr murthy
Power system-analysis-psr murthyPower system-analysis-psr murthy
Power system-analysis-psr murthy
gudlavalleru engineering college
 
building construction
building constructionbuilding construction
building construction
gudlavalleru engineering college
 
Ai chap2 state (1)
Ai chap2 state (1)Ai chap2 state (1)
9.ppt
9.ppt9.ppt
Thermal power-plant
Thermal power-plantThermal power-plant
Introduction to iso22000 101106
Introduction to iso22000 101106Introduction to iso22000 101106
Introduction to iso22000 101106
gudlavalleru engineering college
 

More from gudlavalleru engineering college (14)

Stld
StldStld
Stld
 
Ppt
PptPpt
Ppt
 
Formula sheet for ec&ee
Formula sheet for ec&eeFormula sheet for ec&ee
Formula sheet for ec&ee
 
Engineering mathematics, fifth edition(1)
Engineering mathematics, fifth edition(1)Engineering mathematics, fifth edition(1)
Engineering mathematics, fifth edition(1)
 
Control systems
Control systemsControl systems
Control systems
 
Induction motors
Induction motorsInduction motors
Induction motors
 
joseph sathvik
joseph sathvikjoseph sathvik
joseph sathvik
 
Ppt by joseph sathvik
Ppt by joseph sathvikPpt by joseph sathvik
Ppt by joseph sathvik
 
Power system-analysis-psr murthy
Power system-analysis-psr murthyPower system-analysis-psr murthy
Power system-analysis-psr murthy
 
building construction
building constructionbuilding construction
building construction
 
Ai chap2 state (1)
Ai chap2 state (1)Ai chap2 state (1)
Ai chap2 state (1)
 
9.ppt
9.ppt9.ppt
9.ppt
 
Thermal power-plant
Thermal power-plantThermal power-plant
Thermal power-plant
 
Introduction to iso22000 101106
Introduction to iso22000 101106Introduction to iso22000 101106
Introduction to iso22000 101106
 

Recently uploaded

IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
Mahmoud Morsy
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
ElakkiaU
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
SakkaravarthiShanmug
 
Seminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptxSeminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptx
Madan Karki
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
AjmalKhan50578
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
TaghreedAltamimi
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
architagupta876
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
RamonNovais6
 
Design and optimization of ion propulsion drone
Design and optimization of ion propulsion droneDesign and optimization of ion propulsion drone
Design and optimization of ion propulsion drone
bjmsejournal
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
UReason
 

Recently uploaded (20)

IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
 
Seminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptxSeminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptx
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
 
Design and optimization of ion propulsion drone
Design and optimization of ion propulsion droneDesign and optimization of ion propulsion drone
Design and optimization of ion propulsion drone
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
 

State space models

  • 2. Why State Space Models  The state space model represents a physical system as n first order differential equations. This form is better suited for computer simulation than an nth order input- output differential equation.
  • 3. Basics  Vector matrix format generally is given by: where y is the output equation, and x is the state vector
  • 4. PARTS OF A STATE SPACE REPRESENTATION  State Variables: a subset of system variables which if known at an initial time t0 along with subsequent inputs are determined for all time t>t0+  State Equations: n linearly independent first order differential equations relating the first derivatives of the state variables to functions of the state variables and the inputs.  Output equations: algebraic equations relating the state variables to the system outputs.
  • 5. EXAMPLE  The equation gathered from the free body diagram is: mx" + bx' + kx - f(t) = 0  Substituting the definitions of the states into the equation results in: mv' + bv + kx - f(t) = 0  Solving for v' gives the state equation: v' = (-b/m) v + (-k/m) x + f(t)/m  The desired output is for the position, x, so: y = x
  • 6. Cont…  Now the derivatives of the state variables are in terms of the state variables, the inputs, and constants. x' = v v' = (-k/m) x + (-b/m) v + f(t)/m y = x
  • 7. PUTTING INTO VECTOR-MATRIX FORM  Our state vector consists of two variables, x and v so our vector-matrix will be in the form:
  • 8. Explanation  The first row of A and the first row of B are the coefficients of the first state equation for x'. Likewise the second row of A and the second row of B are the coefficients of the second state equation for v'. C and D are the coefficients of the output equation for y.
  • 10. HOW TO INPUT THE STATE SPACE MODEL INTO MATLAB  In order to enter a state space model into MATLAB, enter the coefficient matrices A, B, C, and D into MATLAB. The syntax for defining a state space model in MATLAB is: statespace = ss(A, B, C, D) where A, B, C, and D are from the standard vector- matrix form of a state space model.
  • 11. Example  For the sake of example, lets take m = 2, b = 5, and k = 3.  >> m = 2;  >> b = 5;  >> k = 3;  >> A = [ 0 1 ; -k/m -b/m ];  >> B = [ 0 ; 1/m ];  >> C = [ 1 0 ];  >> D = 0;  >> statespace_ss = ss(A, B, C, D)
  • 12. Output  This assigns the state space model under the name statespace_ss and output the following:  a = x1 x2 x1 0 1 x2 -1.5 -2.5
  • 13. Cont…  b = u1 x1 0 x2 0.5 c = x1 x2 y1 1 0
  • 14. Cont…  d = u1 y1 0 Continuous-time model.
  • 15. EXTRACTING A, B, C, D MATRICES FROM A STATE SPACE MODEL  In order to extract the A, B, C, and D matrices from a previously defined state space model, use MATLAB's ssdata command.  [A, B, C, D] = ssdata(statespace) where statespace is the name of the state space system.
  • 16. Example  >> [A, B, C, D] = ssdata(statespace_ss)  The MATLAB output will be:  A =   -2.5000 -0.3750 4.0000 0
  • 18. STEP RESPONSE USING THE STATE SPACE MODEL  Once the state space model is entered into MATLAB it is easy to calculate the response to a step input. To calculate the response to a unit step input, use:  step(statespace)  where statespace is the name of the state space system.  For steps with magnitude other than one, calculate the step response using:  step(u * statespace)  where u is the magnitude of the step and statespace is the name of the state space system.