20-sim webhelp > Language Reference > Functions > Matrix > inverse


inverse

Navigation:  Language Reference > Functions > Matrix >

inverse

Previous pageReturn to chapter overviewNext page

Syntax

Y = inverse(A);

Description

Returns the inverse of square non-singular matrix A.

Examples

A = [1,0;0,1+ramp(1)];

Y = inverse(A);

Limitations

A must be a non-singular square matrix. Y must have the same size as A.