append

Parameters

Parameter label

I/O type

Data type

Mandatory parameter?

Default value

inputVec

input

vector

yes

value

intput

scalar

no

0

mode

input

"value"|"first"|"last"

no

"value"

outputVec

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]