Mux

Given n vector valued inputs, this block merges inputs into a single output vector.

    Mux

Library

Routing

Description

The Mux block merges given number of inputs into a single output vector. The number of inputs can be set by "Number Of Inputs" parameter. The input signal is required to be column vector. For each input vector, its dimension is configured in the table "Input Port Sizes", the value in ith table entry corresponds to the ith input signal. For example if the first input signal is 3x1 column vector, the first entry in "Input Port Sizes" should be set to 3. It's possible to specify port sizes using negative values, which indicates the input signal dimension is determined by diagram compiler automatically. For example the "Input Port Sizes" are -1, -2, the two input signals can be of any different sizes. If the "Input Port Sizes" are -1, -1, the two input signals must have the same size.

Parameters

Mux_0

NameLabelDescriptionData TypeValid Values

nin

Number of inputs

Specify the number of input signals to be merged into an output vector.

Number

inports

Input port sizes

Specify the dimension of each input signal.

Structure

inports/size

Vector size

Cell of scalars

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