@lti/prescale
Function File: [scaledsys, info] = prescale (sys)
Scale state-space model. The scaled model scaledsys is equivalent to sys, but the state vector is scaled by diagonal transformation matrices in order to increase the accuracy of subsequent numerical computations. Frequency response commands perform automatic scaling unless model property scaled is set to true.
Inputs
Outputs
Tl = diag (info.SL).Tr = diag (info.SR).Equations $$ E_s = T_l\,E\,T_r $$$$ A_s = T_l\,A\,T_r $$$$ B_s = T_l\,B $$$$ C_s = C\,T_r $$$$ D_s = D $$
For proper state-space models, Tl and Tr are inverse of each other.
Algorithm
Uses SLICOT TB01ID and TG01AD,
Copyright (c) 1996-2025, SLICOT, available under the BSD 3-Clause
(License and Disclaimer).
Source Code: @lti/prescale