User`s guide

Table Of Contents
feedback
11-74
computes a closed-loop model sys for the more general feedback loop.
The vector
feedin contains indices into the input vector of sys1 and specifies
which inputs are involved in the feedback loop. Similarly,
feedout specifies
whichoutputs of
sys1 are usedforfeedback. Theresulting LTImodel sys has
the same inputs and outputs as
sys1 (with their order preserved). As before,
negative feedback is applied by default and you must use
sys = feedback(sys1,sys2,feedin,feedout,+1)
to apply positive feedback.
For more complicated feedback structures, use
append and connect.
Remark You can specify static gains as regular matrices, for example,
sys = feedback(sys1,2)
However, at least one of the two arguments sys1 and sys2 should be an LTI
object. For feedback loops involving two static gains
k1 and k2, use the syntax
sys = feedback(tf(k1),k2)
sys1
sys2
+
u
y
v
z
sys
u
y