Specifications
Table Of Contents
- Introduction
- LTI Models
- Operations on LTI Models
- Model Analysis Tools
- Arrays of LTI Models
- Customization
- Setting Toolbox Preferences
- Setting Tool Preferences
- Customizing Response Plot Properties
- Design Case Studies
- Reliable Computations
- GUI Reference
- SISO Design Tool Reference
- Menu Bar
- File
- Import
- Export
- Toolbox Preferences
- Print to Figure
- Close
- Edit
- Undo and Redo
- Root Locus and Bode Diagrams
- SISO Tool Preferences
- View
- Root Locus and Bode Diagrams
- System Data
- Closed Loop Poles
- Design History
- Tools
- Loop Responses
- Continuous/Discrete Conversions
- Draw a Simulink Diagram
- Compensator
- Format
- Edit
- Store
- Retrieve
- Clear
- Window
- Help
- Tool Bar
- Current Compensator
- Feedback Structure
- Root Locus Right-Click Menus
- Bode Diagram Right-Click Menus
- Status Panel
- Menu Bar
- LTI Viewer Reference
- Right-Click Menus for Response Plots
- Function Reference
- Functions by Category
- acker
- allmargin
- append
- augstate
- balreal
- bode
- bodemag
- c2d
- canon
- care
- chgunits
- connect
- covar
- ctrb
- ctrbf
- d2c
- d2d
- damp
- dare
- dcgain
- delay2z
- dlqr
- dlyap
- drss
- dsort
- dss
- dssdata
- esort
- estim
- evalfr
- feedback
- filt
- frd
- frdata
- freqresp
- gensig
- get
- gram
- hasdelay
- impulse
- initial
- interp
- inv
- isct, isdt
- isempty
- isproper
- issiso
- kalman
- kalmd
- lft
- lqgreg
- lqr
- lqrd
- lqry
- lsim
- ltimodels
- ltiprops
- ltiview
- lyap
- margin
- minreal
- modred
- ndims
- ngrid
- nichols
- norm
- nyquist
- obsv
- obsvf
- ord2
- pade
- parallel
- place
- pole
- pzmap
- reg
- reshape
- rlocus
- rss
- series
- set
- sgrid
- sigma
- sisotool
- size
- sminreal
- ss
- ss2ss
- ssbal
- ssdata
- stack
- step
- tf
- tfdata
- totaldelay
- zero
- zgrid
- zpk
- zpkdata
- Index

balreal
16-17
16balreal
Purpose Input/output balancing of state-space realizations
Syntax sysb = balreal(sys)
[sysb,g,T,Ti] = balreal(sys)
Description sysb = balreal(sys) produces a balanced realization sysb of the LTI model
sys with equal and diagonal controllability and observability grammians (see
gram for a definition of grammian). balreal handles both continuous and
discrete systems. If
sys is not a state-space model, it is first and automatically
converted to state space using
ss.
[sysb,g,T,Ti] = balreal(sys) also returns the vector g containing the
diagonal of the balanced grammian, the state similarity transformation
used to convert
sys to sysb, and the inverse
transformation .
If the system is normalized properly, the diagonal
g of the joint grammian can
be used to reduce the model order. Because
g reflects the combined
controllability and observability ofindividual states ofthe balanced model, you
can delete those states with a small
g(i) while retaining the most important
input-output characteristics of the original system. Use
modred to perform the
state elimination.
Example Consider the zero-pole-gain model
sys = zpk([-10 -20.01],[-5 -9.9 -20.1],1)
Zero/pole/gain:
(s+10) (s+20.01)
----------------------
(s+5) (s+9.9) (s+20.1)
A state-space realization with balanced grammians is obtained by
[sysb,g] = balreal(sys)
The diagonal entries of the joint grammian are
g'
ans =
x
b
Tx=
T
i T
1–
=