Thanks
k_c=starp([F eye(ncon); eye(nmeas) zeros(nmeas,ncon)],k_c,nmeas,ncon);
not
k_c=starp([F eye(ncon); eye(nmeas) zeros(nmeas,ncon)],k_c,ncon,nmeas);
note the last two parameters are reversed. Am I right? Am I right?
Breathlessly waiting,
Jim Huang
Jim,
you _are_ right, because the input system matrix k_c has nmeas inputs and
ncon outputs as well as the returned k_c.
Seems like MUSYN Inc. tested the software on square controllers only.
BTW, IMHO they could have omitted the dimensions, because they are
calculating simple LFTs.
Greetings, Juergen
--
------------------------------------------------------------------------------
TECHNISCHE HOCHSCHULE DARMSTADT
Juergen Eich Fachgebiet Flugmechanik und Regelungstechnik
Petersenstrasse 30
D-64287 Darmstadt
Tel. x49 / 6151 / 16-2690
E-Mail: ei...@riker.fmr.maschinenbau.th-darmstadt.de
------------------------------------------------------------------------------
Thanks for pointing out the bug. We have checked with the authors of the
mutools. The authors have confirmed that it is a bug. The bug will be
fixed in the next release.
W.Wang E-mail: wa...@mathworks.com
The MathWorks, Inc. MATLAB info: in...@mathworks.com
24 Prime Park Way WWW: http://www.mathworks.com
Natick, MA 01760 Phone: (508) 653-1415
Try the commands iofr and iofl in the Robust Control Toolbox.
>> help iofr
[SS_IN,SS_INP,SS_OUT] = IOFC(SS_) or
[AIN,BIN,CIN,DIN,AINP,BINP,CINP,DINP,AOUT,BOUT,COUT,DOUT] = IOFC(A,B,C,D)
produces an inner-outer factorization of a m x n transfer function
G: SS_ = MKSYS(A,B,C,D) (m>=n)
such that
G = |Th Thp| |M|
|0|
where
[Th Thp] : square and inner.
M : outer factor.
The resulting state-space quadruples are accumulated in
(ain,bin,...) or
ss_in = mksys(ain,bin,cin,din);
ss_inp = mksys(ainp,binp,cinp,dinp);
ss_out = mksys(aout,bout,cout,dout);
The standard state-space can be recovered by "branch".
>> help iofc
IOFC State-space inner-outer factorization.
[SS_IN,SS_INP,SS_OUT] = IOFC(SS_) or
[AIN,BIN,CIN,DIN,AINP,BINP,CINP,DINP,AOUT,BOUT,COUT,DOUT] = IOFC(A,B,C,D)
produces an inner-outer factorization of a
m x n transfer function G: SS_ = MKSYS(A,B,C,D) (m<n)
such that
G = |M 0| |Th |
|Thp|
where
|Th |: square and inner
|Thp|
M : outer factor.
The resulting state-space quadruples are accumulated in
(ain,bin,...) or
ss_in = mksys(ain,bin,cin,din);
ss_inp = mksys(ainp,binp,cinp,dinp);
ss_out = mksys(aout,bout,cout,dout);
The standard state-space can be recovered by "branch".
Hope this helps,
AndyP
==== Andy Potvin ================== pot...@mathworks.com ========
| The MathWorks, Inc. | in...@mathworks.com |
| 24 Prime Park Way | http://www.mathworks.com |
| Natick, MA 01760-1500 | ftp.mathworks.com |
| Phone: (508) 653-1415 | Fax: (508) 653-2997 |
=================================================================
| Working software is the only acceptable proof. |
=================================================================