balanc - matrix or pencil balancing
Balance a square matrix to improve its condition number.
finds a similarity transformation X such that
has approximately equal row and column norms.
For matrix pencils,balancing is done for improving the generalized eigenvalue problem.
returns left and right transformations X and Y such that Eb=inv(X)*E*Y, Ab=inv(X)*A*Y
Balancing is made in the functions bdiag and spec.
A=[1/2^10,1/2^10;2^10,2^10]; [Ab,X]=balanc(A); norm(A(1,:))/norm(A(2,:)) norm(Ab(1,:))/norm(Ab(2,:))