ScalarExpand

This block converts a scalar input into a matrix output whose entries are all equal to the input scalar.

    ScalarExpand

Library

SignalConversions

Description

The ScalarExpand block converts a scalar value into a matrix of identical elements.

The inputs are expanded into a matrix of identical elements whose dimensions are equal to the dimension specified in the block parameters.

All types supported by Activate are allowed as input to this block.

Parameters

ScalarExpand_0

NameLabelDescriptionData TypeValid Values

nout

Size of output ([-1,-2] if unknown)

Dimensions of the output matrix. These dimensions are provided when known, else [-1,-2] can be used and Activate will compute the appropriate dimensions.

Vector of size 2

externalActivation

External activation

This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

explicit

output

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no