Adding a vector to a number

| Vector | C | ST |
в палитре на схеме

In the case of a scalar signal at the second input, the block implements the operation of summing each of the elements of the vector signal at the first input with the scalar signal at the second input:

where ai(t) is the i-th element of the input vector signal at the first input; b(t) is the signal at the second input, the scalar; yi(t) is the element of the output vector signal. The dimension of the output is equal to the dimension of the first input.

In the case of a vector signal at the second input, the block implements the operation of summing each of the elements of the vector signal at the first input in turn with each of the elements of the vector signal at the second input. The dimension of the output signal is equal to the product of the dimensions of the signals on the first and second ports:

where ai(t) is the i-th element of the input vector signal at the first input; bj(t) is the j-th element of the input vector signal at the second input; yk(t) is the element of the output vector signal.

Входные порты

  • vector - port for the vector element of the sum;
  • number or vector - port for the scalar or vector element of the sum.

Выходные порты

  • output - port for the resulting vector.

Свойства

none

Параметры

none