Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Pseudoinverse

Compute Moore-Penrose pseudoinverse of matrix

Library

Math Functions / Matrices and Linear Algebra / Matrix Inverses

dspinverses

Description

The Pseudoinverse block computes the Moore-Penrose pseudoinverse of input matrix A.

[U,S,V] = svd(A,0)							% Equivalent MATLAB code

The pseudoinverse of A is the matrix A such that

A=VSU

where U and V are orthogonal matrices, and S is a diagonal matrix. The pseudoinverse has the following properties:

  • AA=(AA)

  • AA=(AA)

  • AAA=A

  • AAA=A

Parameters

Show error status port

Select to enable the E output port, which reports a failure to converge. The possible values you can receive on the port are:

  • 0 — The pseudoinverse calculation converges.

  • 1 — The pseudoinverse calculation does not converge.

If the pseudoinverse calculation fails to converge, the output at port X is an undefined matrix of the correct size.

Simulate using

Type of simulation to run. You can set this parameter to:

  • Interpreted execution (default)

    Simulate model using the MATLAB®  interpreter. This option shortens startup time. For this block, the simulation speed in this mode is faster than in Code generation.

  • Code generation

    Simulate model using generated C code. The first time you run a simulation, Simulink® generates C code for the block. The C code is reused for subsequent simulations, as long as the model does not change. This option requires additional startup time but the simulation speed increases with subsequent simulations.

References

Golub, G. H., and C. F. Van Loan. Matrix Computations. 3rd ed. Baltimore, MD: Johns Hopkins University Press, 1996.

Supported Data Types

PortSupported Data Types

A

  • Double-precision floating point

  • Single-precision floating point

X

  • Double-precision floating point

  • Single-precision floating point

E

  • Boolean

See Also

Cholesky InverseDSP System Toolbox
LDL InverseDSP System Toolbox
LU InverseDSP System Toolbox
Singular Value DecompositionDSP System Toolbox
invMATLAB

See Matrix Inverses for related information.

Introduced before R2006a

Was this topic helpful?