diagonal()

Returns the diagonal of a square matrix as a matrix

Syntax
y = diagonal(Matrix)

Arguments
Name Description Range Type Required
Matrix square matrix to find the diagonal (-∞, ∞) integer, real or complex yes

Examples

mat = {{1,2,3},{4,5,6},{7,8,9}}diag = diagonal(mat)
returns {1,5,9}
For a 2-port S-parameter analysis of 10 freq points:
diagS = diagonal(S)
returns S11 and S22 for each frequency point

Defined in

Built In

See Also

transpose(), inverse()

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources