inv - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Matlab

  

inv

  

compute the inverse of a MapleMatrix or MatlabMatrix in MATLAB(R)

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

inv(X)

Parameters

X

-

MapleMatrix or MatlabMatrix

Description

• 

The inv command computes the inverse of a square matrix using MATLAB®.

• 

Executing the inv command returns a Matrix or a constant.

Examples

Define the Maple matrix

withMatlab:

maplematrix_aMatrix6,4,2,7,8,1,3,7,3

maplematrix_a642781373

(1)

The inverse of this MapleMatrix is computed as

Matlabinvmaplematrix_a

[0.212499999999999966 , 0.0250000000000000360 , -0.150000000000000022]

[                                                                    ]

[-0.224999999999999977 ,  0.149999999999999966 , 0.100000000000000032]

[                                                                    ]

[0.312500000000000000 ,  -0.374999999999999944 , 0.249999999999999944]

Alternatively, the matrix is set in MATLAB® and inverted as a MatlabMatrix.

Matlabsetvarmatlabmatrix_a,maplematrix_a

Matlabinvmatlabmatrix_a

[0.212499999999999966 , 0.0250000000000000360 , -0.150000000000000022]

[                                                                    ]

[-0.224999999999999977 ,  0.149999999999999966 , 0.100000000000000032]

[                                                                    ]

[0.312500000000000000 ,  -0.374999999999999944 , 0.249999999999999944]

See Also

LinearAlgebra[MatrixInverse]

Matlab

Matlab[evalM]

Matlab[getvar]

Matlab[setvar]

MatlabMatrix