Matrix-Addition of matrices
This function block will add two matrices with each other.
Every element of input matrix MX2 will be added to the appropriate element of MX1. The result will be available at MX1.
Both matrices have to have the same number of rows and columns; otherwise the download will be aborted with an error message.
Signals
Name | I/O | Type(s) | Function |
---|---|---|---|
MX1 | I/O | UCHAR,WORD, LONG, LONGLONG, FLOAT, DOUBLE | In-/output matrix |
MX2 | I | UCHAR,WORD, LONG, LONGLONG, FLOAT, DOUBLE | Input matrix |
Visualization
If the two matrices differ in their dimensions, the function block will be depicted red when in run mode.
Comments
The data type will be assigned by connecting an input signal.