Syntax: @cond(o, n)

Argument 1: matrix or sym, o

Argument 2: (optional) scalar n

Return: scalar

Returns the condition number of a square matrix or sym, o. If no norm is specified, the infinity norm is used to determine the condition number. The condition number is the product of the norm of the matrix divided by the norm of the inverse. Possible norms are “-1” for the infinity norm, “0” for the Frobenius norm, and an integer “n” for the norm. Example:

scalar sc1 = @cond(m1)

mat1(1,4) = @cond(s1,2)