rank

Compute rank of symbolic matrix

Syntax

rank(A)

Description

rank(A) computes the rank of the symbolic matrix A.

Examples

Compute the rank of the following numeric matrix:

B = magic(4);
rank(B)
ans =
     3

Compute the rank of the following symbolic matrix:

syms a b c d
A = [a b;c d];
rank(A)
ans =
2

See Also

| | |

Was this topic helpful?