# Documentation

### This is machine translation

Translated by
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.

# Create 3x3 Matrix

Create 3-by-3 matrix from nine input values

## Library

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. This block accepts all data types that Simulink® supports.

The output matrix has the form of

`$A=\left[\begin{array}{ccc}{A}_{11}& {A}_{12}& {A}_{13}\\ {A}_{21}& {A}_{22}& {A}_{23}\\ {A}_{31}& {A}_{32}& {A}_{33}\end{array}\right]$`

## Inputs and Outputs

InputDimension TypeDescription
First Contains the first row and first column of the matrix.
Second Contains the first row and second column of the matrix.
Third Contains the first row and third column of the matrix.
Fourth Contains the second row and first column of the matrix.
Fifth Contains the second row and second column of the matrix.
Sixth Contains the second row and third column of the matrix.
Seventh Contains the third row and first column of the matrix.
Eight Contains the third row and second column of the matrix.
Ninth Contains the third row and third column of the matrix.

OutputDimension TypeDescription
First3-by-3 matrixContains the matrix.

#### Introduced before R2006a

Was this topic helpful?

Get trial now