B = balance(A)
B = balance(A,'noperm')
[T, B] = balance(A)
[S, P, B] = balance(A)
| Parameter | Description |
|---|---|
| A | a matrix: square, finite single or double. |
| Parameter | Description |
|---|---|
| B | balanced matrix. |
| T | similarity transformation: Rearrange the elements of a diagonal matrix containing integer powers of two in order to minimize the impact of roundoff errors. |
| S | scaling vector |
| P | permutation vector |
B = balance(A) returns the balanced matrix B.
B = balance(A, 'noperm') scales A without permuting its rows and columns.
A = [10 1000 100000; .1 10 1000; .001 .1 10]
F = balance(A)
| Version | Description |
|---|---|
| 1.0.0 | initial version |