Function Reference    
ssbal

Balance state-space models using a diagonal similarity transformation

Syntax

Description

Given a state-space model sys with matrices ,

computes a diagonal similarity transformation and a scalar such that

has approximately equal row and column norms. ssbal returns the balanced model sysb with matrices

and the state transformation where is the new state.

[sysb,T] = ssbal(sys,condT) specifies an upper bound condT on the condition number of . Since balancing with ill-conditioned can inadvertently magnify rounding errors, condT gives control over the worst-case roundoff amplification factor. The default value is condT=Inf.

ssbal returns an error if the state-space model sys has varying state dimensions.

Example

Consider the continuous-time state-space model with the following data.

Balance this model with ssbal by typing

Direct inspection shows that the range of numerical values has been compressed by a factor 100 and that the and matrices now have nearly equal norms.

Algorithm

ssbal uses the MATLAB function balance to compute and .

See Also
balreal     Grammian-based I/O balancing

ss2ss       State coordinate transformation


  ss2ss ssdata