Define Missing Constructs
When you created the library definition file to the
library in the previous step, MATLAB® reported that five constructs are partially defined. To completely define the
functionality, edit the
definematrixlib.m file. If you have not yet opened
the file, you can click the link in the output message to open it in the editor.
C++ compiler set to 'MinGW64 Compiler (C++)'. Definition file definematrixOperations.m contains definitions for 10 constructs supported by MATLAB. - 5 constructs are fully defined. - 5 constructs partially defined and commented out. To include the 5 undefined constructs in the interface, uncomment and complete the definitions in definematrixOperations.m. To build the interface, call build(definematrixOperations).
Scroll through the library definition file open in your editor to find blocks of commented code for these constructs.
MATLAB cannot automatically determine the size of arguments used by these functions.
setMat- C++ method for class
getMat- C++ method for class
copyMat- C++ method for class
addMat- C++ package function
updateMatBySize- C++ package function
Based on the documentation of the
matrixOperations library, you can
provide values for
<SHAPE> in the argument definition statements.
For more information, see Define Missing SHAPE Parameter.
For each construct, uncomment the statements defining it.
<SHAPE>arguments with these values.
Argument C++ Definition
int  src
The length of the matrix is defined by the input argument
int const *
The length of the output argument is defined by the input argument
int * dest
destis defined by the input argument
Mat const * mat
The function takes a single
int * arr
arris defined by the input argument
Save and close the definition file.
Continue with the next step.