|
|
| Scalar | C | |
in the palette |
on the schematic |
The block is vectorized, implements (by default) element-by-element subtraction of the second input vector signal from the first one:
where
y(
t) is the output signal of the block;
u1(
t),
u2(
t) are the input signals. Otherwise (except for default operation and block image) the block is similar to the
Summator – you can set any weighting factors for each of the inputs.
Inputs
- input_1 - signal from which the subtraction is made;
- input_2 - signal to be subtracted.
Outputs
- output - the resulting output signal.
Properties:
- Weight factors for each of the inputs – the vector of real numbers by which the values of the input signals of the block are multiplied. The number of input ports of the block is equal to the dimension of this array. By default, the weights are [1,-1] for the subtraction implementation.
Input signals can be vectors
u1=[
u1 1,
u1 2, …,
u1 m],
u2=[
u2 1,
u2 2, …,
u2 m] …
un=[
un 1,
un 2, …,
un m], the dimensions of which must be the same. In this case, the output will also be a vector:
where
yi(
t) is the i-th element of the output vector signal of the block;
u1 i(
t),
u2 i(
t) is the i-th element of the first, second, etc. input signal.
Прим.:
- By default, the block forms an output signal equal to the difference between the two input signals (the weight factors are two, and they are +1 and -1).
- Named properties can be set as local model variables (or submodels) in a programming language script, as global project signals using the Tools → Signals main menu item, or as external project signals using a attachable signal database.