Determinant of 3x3 Matrix

Compute determinant of matrix

  • Library:
  • Aerospace Blockset / Utilities / Math Operations

  • Determinant of 3x3 Matrix block

Description

The Determinant of 3x3 Matrix block computes the determinant for the input matrix. For related equations, see Algorithms.

Ports

Input

expand all

Input matrix, specified as a 3-by-3 matrix.

Data Types: double

Output

expand all

Determinant, output as a scalar.

Data Types: double

Algorithms

The input matrix has the form of

A=[A11A12A13A21A22A23A31A32A33]

The determinant of the matrix has the form of

det(A)=A11(A22A33A23A32)A12(A21A33A23A31)+A13(A21A32A22A31)

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced before R2006a