spectrad 349
spectrad
Syntax
out = spectrad(mat)
Parameter List
Inputs: mat Square matrix or pdm.
Outputs: out spectral radius of the input.
Description
Calculates the spectral radius (magnitude of the maximum eigenvalue) of the input
matrix.
Example
pdm1 = randpdm(3,2,2, { zeromean})?
pdm1 (a pdm) =
domain | Col 1 Col 2
-------+------------------------------
0 | Row 1 0.0504605 -0.0914956
| Row 2 0.221744 -0.0231464
-------+------------------------------
1 | Row 1 0.139306 0.496387
| Row 2 -0.342521 0.0350694
-------+------------------------------
2 | Row 1 -0.287094 0.0591451
| Row 2 -0.0695034 -0.477195
-------+------------------------------