SizeConstraint

This block adds a size constraint to the model.

    SizeConstraint

Library

Activate/SignalProperties

Description

This block imposes size constraint on all input signals to force the same or different sizes. Negative numbers in block parameter "Input Port Size Constraint" are used to represents the size. For example, when the types are defined by -1, -1, it means both input signals should be of the same size. When sizes are defined by -1, -2, -1, it means the first and third input signals are same sizes, the second input signal is a different size.

Parameters

SizeConstraint_0

NameLabelDescriptionData TypeValid Values

nin

Number of inputs

Specify the number of inputs of the block.

Number

in_ports

Input port size constraint

Structure

in_ports/szx

Size code

The desired sizes. Use negative numbers to represent that input ports have the same or different sizes.

cell of matrices of size 1x2

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin