On 05.06.2012, at 12:06, c. wrote: > > On 5 Jun 2012, at 11:34, Lukas Reichlin wrote: > >> Well, the sign IS relevant. But the two state-space models are equivalent if >> you can find a diagonal transformation matrix T with entries -1 and 1 such >> that >> >> Aexp = T \ Aobs * T >> Bexp = T \ Bobs >> Cexp = Cobs * T >> Dexp = Dobs >> >> I don't know which ATLAS routine returns different solutions and why. If >> there is such a T, then the result is not wrong in the sense of control >> engineering. >> Using >> assert (abs (Mo), abs (Me), 1e-4) >> i just a crutchm, we should find and test T. >> >> BTW: M = [A, B; C, D > > Thanks for the explanation. > Are B and/or C above invertible? > what are their sizes? > > c.
In general, B and C are not even square. dx/dt = A*x(t) + B*u(t) y(t) = C*x(t) + D*u(t) a p-by-m state-space system with n states p: number outputs m: number of inputs n: number of states (first-order linear differential equations) A(n-by-n) B(n-by-m) C(p-by-n) D(p-by-m) u(t) (m-by-1) x(t) (n-by-1) y(t) (p-by-1) If there is fifth matrix E (n-by-n) (E != eye(n)), the model is called a descriptor state-space system. (Note that we usually don't write I*dx/dt = … if E is an identity matrix, we leave that out and get the formula at the top of my posting) E*dx/dt = A*x(t) + B*u(t) y(t) = C*x(t) + D*u(t) If E is not invertible, then the model is valid but not realizable in practice (similar to IIR filters with more zeros than poles). Note that there are two transformation matrices Tl and Tr from "help @lti/prescale": *Equations* Es = Tl * E * Tr As = Tl * A * Tr Bs = Tl * B Cs = C * Tr Ds = D For realizable state-space models, Tl and Tr are inverse of each other: dx/dt = E \ A x(t) + E \ B u(t) y(t) = C x(t) + D u(t) Since (Tl * E * Tr)^-1 = Tr^-1 * E^-1 * Tl^-1 Tl drops out of the equation and you get As = Tr \ A * Tr Bs = Tr \ B Cs = C * Tr Ds = D which is the result we already know. Of course you can introduce a new Tl = Tr^-1 and write As = Tl * A * Tr Bs = Tl * B Cs = C * Tr Ds = D Regards, Lukas ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev