Assignment

Assigns value(s) to specified element(s) of the input matrix.

    Assignment

Library

Activate/MatrixOperations

Description

Specified elements of input matrix is assigned with the input labeled 'u'. The specified rows or columns can either be represented by a vector of row/column numbers as the block parameter, or fed externally with an optional input.

Parameters

Assignment_0

NameLabelDescriptionData TypeValid Values

assignx

Index vector I

Index selection method for the first dimension.

Structure

assignx/x_selectall

: (all)

Select all rows.

Number

0
1

assignx/x_vectorindex

Defined as parameter

Select rows by specified indices.

Number

0
1

assignx/x_startingindex

i=I(1) defined as parameter

Select rows by specified starting index.

Number

0
1

assignx/x_startingindexdecreasing

i=I(1) defined as parameter (decreasing)

Select rows by specified endinging index.

Number

0
1

assignx/x_vectorindexport

Defined by input

Select rows by the indices provided externally

Number

0
1

assignx/x_startingindexport

i=I(1) defined by input

Select rows from starting index provided externally.

Number

0
1

assignx/x_startingindexportdecreasing

i=I(1) defined by input (decreasing)

Select rows from ending index provided externally.

Number

0
1

x_vector_index

Index parameter

Structure

x_vector_index/x_vi

Index vector I parameter

Cell of vectors

x_starting_index

Index parameter

Structure

x_starting_index/x_si

i=I(1) parameter

The indices of selected rows.

Cell of vectors of size 1

x_starting_indexdecreasing

Index parameter

Structure

x_starting_indexdecreasing/x_si

i=I(1) parameter

The index of starting row.

Cell of vectors of size 1

assigny

Index vector J

Index selection method for the second dimension.

Structure

assigny/y_selectall

: (all)

Select all columns.

Number

0
1

assigny/y_vectorindex

Defined as parameter

Select columns by specified indices.

Number

0
1

assigny/y_startingindex

j=J(1) defined as parameter

Select columns by specified starting index.

Number

0
1

assigny/y_startingindexdecreasing

j=J(1) defined as parameter (decreasing)

Select columns by specified ending index.

Number

0
1

assigny/y_vectorindexport

Defined by input

Select columns by the indices provided externally.

Number

0
1

assigny/y_startingindexport

j=J(1) defined by input

Select columns from starting index provided externally.

Number

0
1

assigny/y_startingindexportdecreasing

j=J(1) defined by input (decreasing)

Select columns from ending index provided externally.

Number

0
1

y_vector_index

Index parameter

Structure

y_vector_index/y_vi

Index vector J parameter

The indices of selected columns.

Cell of vectors

y_starting_index

Index parameter

Structure

y_starting_index/y_si

j=J(1) parameter

The index of starting column.

Cell of vectors of size 1

y_starting_index_portdecreasing

Index parameter

Structure

y_starting_index_portdecreasing/y_si

j=J(1) parameter

Cell of vectors of size 1

onebased

One-based indexing

To index a matrix, start from one when checked, start from zero when unchecked.

Number

0
1

externalActivation

External activation

Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Y

explicit

input

1

U

explicit

input

2

Port 3

explicit

input

1-assignx.x_selectall*1-assignx.x_vectorindex*1-assignx.x_startingindex*1-assignx.x_startingindexdecreasing+1-assigny.y_selectall*1-assigny.y_vectorindex*1-assigny.y_startingindex*1-assigny.y_startingindexdecreasing

Y

explicit

output

1

Port 5

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