User`s guide
Table Of Contents
- Preface
- Quick Start
- LTI Models
- Introduction
- Creating LTI Models
- LTI Properties
- Model Conversion
- Time Delays
- Simulink Block for LTI Systems
- References
- Operations on LTI Models
- Arrays of LTI Models
- Model Analysis Tools
- The LTI Viewer
- Introduction
- Getting Started Using the LTI Viewer: An Example
- The LTI Viewer Menus
- The Right-Click Menus
- The LTI Viewer Tools Menu
- Simulink LTI Viewer
- Control Design Tools
- The Root Locus Design GUI
- Introduction
- A Servomechanism Example
- Controller Design Using the Root Locus Design GUI
- Additional Root Locus Design GUI Features
- References
- Design Case Studies
- Reliable Computations
- Reference
- Category Tables
- acker
- append
- augstate
- balreal
- bode
- c2d
- canon
- care
- chgunits
- connect
- covar
- ctrb
- ctrbf
- d2c
- d2d
- damp
- dare
- dcgain
- delay2z
- dlqr
- dlyap
- drmodel, drss
- dsort
- dss
- dssdata
- esort
- estim
- evalfr
- feedback
- filt
- frd
- frdata
- freqresp
- gensig
- get
- gram
- hasdelay
- impulse
- initial
- inv
- isct, isdt
- isempty
- isproper
- issiso
- kalman
- kalmd
- lft
- lqgreg
- lqr
- lqrd
- lqry
- lsim
- ltiview
- lyap
- margin
- minreal
- modred
- ndims
- ngrid
- nichols
- norm
- nyquist
- obsv
- obsvf
- ord2
- pade
- parallel
- place
- pole
- pzmap
- reg
- reshape
- rlocfind
- rlocus
- rltool
- rmodel, rss
- series
- set
- sgrid
- sigma
- size
- sminreal
- ss
- ss2ss
- ssbal
- ssdata
- stack
- step
- tf
- tfdata
- totaldelay
- zero
- zgrid
- zpk
- zpkdata
- Index

connect
11-34
11connect
Purpose Derive state-space model from block diagram description
Syntax sysc = connect(sys,Q,inputs,outputs)
Description Complex dynamical systems are often given in block diagram form. For
systems of even moderate complexity, it can be quite difficult to find the
state-space model required in order to bring certain analysis and design tools
into use. Starting with a block diagram description, you can use
append and
connect to construct a state-space model of the system.
First, use
sys = append(sys1,sys2,...,sysN)
to specify each block sysj in the diagram and form a block-diagonal,
unconnected LTI model
sys of the diagram.
Next, use
sysc = connect(sys,Q,inputs,outputs)
to connect the blocks together and derive a state-space model sysc for the
overall interconnection. The arguments
Q, inputs,andoutputs have the
following purpose:
• The matrix
Q indicates h ow the blocks on the diagram are connected. It has
a row for each input of
sys, where the first element of each row is the input
number. The subsequent elementsof each row specify where the block input
gets its s umming inputs; negative elements indicate minus inputs to the
summingjunction. For example, if input 7 gets its inputs from the outputs2,
15, and 6, where the input from output 15 is negative, the correspondingrow
of
Q is [7 2 –15 6]. Short rows can be padded with trailing zeros (see
example below).
• Given
sys and Q, connect computes a s tate-space model of the
interconnection wit h the same inputs and outputs as
sys (that is, the
concatenation of all block inputs and outputs). The index vectors
inputs and
outputs then indicate which of t he inputs and outputs in the large
unconnected system are external inputs and outputs of the block diagram.
For e xample, if the external inputs are inputs 1, 2, and 1 5 of
sys,andthe