MatrixConcatenation

This block outputs the horizontal or vertical concatenation of multiple matrices.

    MatrixConcatenation

Library

MatrixOperations

Description

The MatrixConcatenation block, depending on the selection of the Concatenation Type parameter, performs either Horizontal or Vertical concatenation. The horizontal concatenation of multiple matrices, also called concatenation according to the columns, applies to inputs U1,U2,...,Un with the same number of rows. The output is a M-by-(N1+N2+...+Nn) matrix, where N1,N2,...,Nn are the numbers of columns of the inputs matrices, and M is the number of rows. The vertical concatenation of multiple matrices, also called concatenation according to the rows, applies to inputs U1,U2,...,Un with the same number of columns. The output is a (M1+M2+...+Mn)-by-N matrix, where M1,M2,...,Mn are the numbers of rows of the inputs matrices, and N is the number of columns.

Parameters

MatrixConcatenation_0

NameLabelDescriptionData TypeValid Values

nin

Number of inputs

Number

method

Concatenation type

String

'Horizontal'
'Vertical'

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin

Port 2

explicit

output

1

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no