Main Content

Create 3x3 Matrix

Create 3-by-3 matrix from nine input values

  • Create 3x3 Matrix block

Libraries:
Aerospace Blockset / Utilities / Math Operations

Description

The Create 3x3 Matrix block creates a 3-by-3 matrix from nine input values where each input corresponds to an element of the matrix.

The output matrix has the form of

A=[A11A12A13A21A22A23A31A32A33]

Ports

Input

expand all

First row, first column of the matrix, specified as a matrix element.

Example: 1

Data Types: double

First row, second column of the matrix, specified as a matrix element.

Example: 2

Data Types: double

First row, third column of the matrix, specified as a matrix element.

Example: 3

Data Types: double

Second row, first column of the matrix, specified as a matrix element.

Example: 4

Data Types: double

Second row, second column of the matrix, specified as a matrix element.

Example: 5

Data Types: double

Second row, third column of the matrix, specified as a matrix element.

Example: 6

Data Types: double

Third row, first column of the matrix, specified as a matrix element.

Example: 7

Data Types: double

Third row, second column of the matrix, specified as a matrix element.

Example: 8

Data Types: double

Third row, third column of the matrix, specified as a matrix element.

Example: 9

Data Types: double

Output

expand all

Matrix, output as a 3-by-3 matrix.

Data Types: double

Extended Capabilities

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

Version History

Introduced before R2006a