# cond

Condition number for inversion

## Syntax

## Description

## Examples

## Input Arguments

## Output Arguments

## More About

## Tips

`rcond`

is a more efficient, but less reliable, method of estimating the condition of a matrix compared to`cond`

.

## Algorithms

The algorithm for `cond`

has three pieces:

If

`p = 2`

, then`cond`

uses the singular value decomposition provided by`svd`

to find the ratio of the largest and smallest singular values.If

`p = 1`

,`Inf`

, or`'fro'`

, then`cond`

calculates the condition number using the appropriate norm of the input matrix and its inverse with`norm(A,p) * norm(inv(A),p)`

.If the input matrix is sparse, then

`cond`

ignores any specified`p`

value and calls`condest`

.

## Extended Capabilities

## Version History

**Introduced before R2006a**