SlideShare une entreprise Scribd logo
1  sur  19
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

Contenu connexe

Tendances

Mathematical Modelling of Control Systems
Mathematical Modelling of Control SystemsMathematical Modelling of Control Systems
Mathematical Modelling of Control SystemsDivyanshu Rai
 
Discrete state space model 9th &10th lecture
Discrete  state space model   9th  &10th  lectureDiscrete  state space model   9th  &10th  lecture
Discrete state space model 9th &10th lectureKhalaf Gaeid Alshammery
 
State equations for physical systems
State equations for physical systemsState equations for physical systems
State equations for physical systemsSarah Krystelle
 
Lag lead compensator design in frequency domain 7th lecture
Lag lead compensator design in frequency domain  7th lectureLag lead compensator design in frequency domain  7th lecture
Lag lead compensator design in frequency domain 7th lectureKhalaf Gaeid Alshammery
 
State space analysis shortcut rules
State space analysis shortcut rulesState space analysis shortcut rules
State space analysis shortcut rulesPrajakta Pardeshi
 
Controllability and observability
Controllability and observabilityControllability and observability
Controllability and observabilityjawaharramaya
 
Transfer function and mathematical modeling
Transfer  function  and  mathematical  modelingTransfer  function  and  mathematical  modeling
Transfer function and mathematical modelingvishalgohel12195
 
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-20Ali Rind
 
Lecture 2 transfer-function
Lecture 2 transfer-functionLecture 2 transfer-function
Lecture 2 transfer-functionSaifullah Memon
 
Time domain analysis
Time domain analysisTime domain analysis
Time domain analysisHussain K
 
Dcs lec03 - z-analysis of discrete time control systems
Dcs   lec03 - z-analysis of discrete time control systemsDcs   lec03 - z-analysis of discrete time control systems
Dcs lec03 - z-analysis of discrete time control systemsAmr E. Mohamed
 
Notes nyquist plot and stability criteria
Notes nyquist plot and stability criteriaNotes nyquist plot and stability criteria
Notes nyquist plot and stability criteriaAleksandar Micic
 
TIME DOMAIN ANALYSIS
TIME DOMAIN ANALYSISTIME DOMAIN ANALYSIS
TIME DOMAIN ANALYSISSyed Saeed
 
Modern Control - Lec 01 - Introduction to Control System
Modern Control - Lec 01 - Introduction to Control SystemModern Control - Lec 01 - Introduction to Control System
Modern Control - Lec 01 - Introduction to Control SystemAmr E. Mohamed
 
Lecture 17 me 176 (4th) 9 - design via root locus
Lecture 17   me 176 (4th)   9 - design via root locusLecture 17   me 176 (4th)   9 - design via root locus
Lecture 17 me 176 (4th) 9 - design via root locusLeonides De Ocampo
 
Control systems engineering
Control systems engineeringControl systems engineering
Control systems engineeringAnisur Rahman
 
LYAPUNOV STABILITY PROBLEM SOLUTION
LYAPUNOV STABILITY PROBLEM SOLUTIONLYAPUNOV STABILITY PROBLEM SOLUTION
LYAPUNOV STABILITY PROBLEM SOLUTIONrohit kumar
 
Optimal control systems
Optimal control systemsOptimal control systems
Optimal control systemsmasmuhtadi
 

Tendances (20)

Mathematical Modelling of Control Systems
Mathematical Modelling of Control SystemsMathematical Modelling of Control Systems
Mathematical Modelling of Control Systems
 
Discrete state space model 9th &10th lecture
Discrete  state space model   9th  &10th  lectureDiscrete  state space model   9th  &10th  lecture
Discrete state space model 9th &10th lecture
 
State equations for physical systems
State equations for physical systemsState equations for physical systems
State equations for physical systems
 
Lag lead compensator design in frequency domain 7th lecture
Lag lead compensator design in frequency domain  7th lectureLag lead compensator design in frequency domain  7th lecture
Lag lead compensator design in frequency domain 7th lecture
 
State space analysis shortcut rules
State space analysis shortcut rulesState space analysis shortcut rules
State space analysis shortcut rules
 
Controllability and observability
Controllability and observabilityControllability and observability
Controllability and observability
 
Transfer function and mathematical modeling
Transfer  function  and  mathematical  modelingTransfer  function  and  mathematical  modeling
Transfer function and mathematical modeling
 
Lyapunov stability
Lyapunov stability Lyapunov stability
Lyapunov stability
 
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
 
Lecture 2 transfer-function
Lecture 2 transfer-functionLecture 2 transfer-function
Lecture 2 transfer-function
 
Time domain analysis
Time domain analysisTime domain analysis
Time domain analysis
 
Dcs lec03 - z-analysis of discrete time control systems
Dcs   lec03 - z-analysis of discrete time control systemsDcs   lec03 - z-analysis of discrete time control systems
Dcs lec03 - z-analysis of discrete time control systems
 
6. steady state error
6. steady state error6. steady state error
6. steady state error
 
Notes nyquist plot and stability criteria
Notes nyquist plot and stability criteriaNotes nyquist plot and stability criteria
Notes nyquist plot and stability criteria
 
TIME DOMAIN ANALYSIS
TIME DOMAIN ANALYSISTIME DOMAIN ANALYSIS
TIME DOMAIN ANALYSIS
 
Modern Control - Lec 01 - Introduction to Control System
Modern Control - Lec 01 - Introduction to Control SystemModern Control - Lec 01 - Introduction to Control System
Modern Control - Lec 01 - Introduction to Control System
 
Lecture 17 me 176 (4th) 9 - design via root locus
Lecture 17   me 176 (4th)   9 - design via root locusLecture 17   me 176 (4th)   9 - design via root locus
Lecture 17 me 176 (4th) 9 - design via root locus
 
Control systems engineering
Control systems engineeringControl systems engineering
Control systems engineering
 
LYAPUNOV STABILITY PROBLEM SOLUTION
LYAPUNOV STABILITY PROBLEM SOLUTIONLYAPUNOV STABILITY PROBLEM SOLUTION
LYAPUNOV STABILITY PROBLEM SOLUTION
 
Optimal control systems
Optimal control systemsOptimal control systems
Optimal control systems
 

En vedette (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 Search(2)
State Space Search(2)State Space Search(2)
State Space Search(2)
 
State space
State spaceState space
State space
 
linear algebra in control systems
linear algebra in control systemslinear algebra in control systems
linear algebra in control systems
 
Modern Control System (BE)
Modern Control System (BE)Modern Control System (BE)
Modern Control System (BE)
 
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
 

Similaire à State space models

1. Introduction.pptx
1. Introduction.pptx1. Introduction.pptx
1. Introduction.pptxSungaleliYuen
 
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).docxagnesdcarey33086
 
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 estadosSANTIAGO PABLO ALBERTO
 
B61301007 matlab documentation
B61301007 matlab documentationB61301007 matlab documentation
B61301007 matlab documentationManchireddy 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.docxsmile790243
 
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).docxanhlodge
 
MATLAB-Introd.ppt
MATLAB-Introd.pptMATLAB-Introd.ppt
MATLAB-Introd.pptkebeAman
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlabBilawalBaloch1
 
Matlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMatlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMohd Esa
 
INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxDevaraj Chilakala
 
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 modeingShehzadAhmed90
 
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 2Scilab
 

Similaire à 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
 

Plus de 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
 

Dernier

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 RecordAsst.prof M.Gokilavani
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
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...roncy bisnoi
 

Dernier (20)

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
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(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
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
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...
 

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.