append¶
Parameters¶
Parameter label |
I/O type |
Data type |
Mandatory parameter? |
Default value |
---|---|---|---|---|
|
input |
vector |
yes |
|
|
intput |
scalar |
no |
0 |
|
input |
|
no |
|
|
output |
vector |
Functionality¶
Module appends one element to the input vector inputVec
. Depending on the value of mode
, the appended element is value
(mode="value"
),
the first element of inputVec
(mode="first"
) or first element of inputVec
(mode="last"
).
Here are three examples:
inputVec = [1,2,3,4]
value = 5
mode = "value"
...
outputVec = [1,2,3,4,5]
inputVec = [1,2,3,4]
mode = "first"
...
outputVec = [1,2,3,4,1]
inputVec = [1,2,3,4]
mode = "last"
...
outputVec = [1,2,3,4,4]