Build Interface to matrixoperations
Library
Validate Edits to Library Definition File
In the previous step, you modified the library definition file
definematrixlib.mlx
. To verify the MATLAB® statements, validate the file and fix any reported errors in the file.
definematrixOperations;
View Functionality
If you defined all constructs in the definition file in the previous step, then the
summary
function
shows the complete library. In some cases, you might not define everything. Use
summary
to review the library. If you need to make changes, return to
the previous step to edit definematrixOperations
.
summary(definematrixOperations)
MATLAB Interface to matrixOperations Library Class clib.matrixOperations.Mat Constructors: clib.matrixOperations.Mat(clib.matrixOperations.Mat) clib.matrixOperations.Mat() Methods: setMat(clib.array.matrixOperations.Int) int32 getMat(uint64) uint64 getLength() copyMat(clib.array.matrixOperations.Int) No Properties defined Functions int32 clib.matrixOperations.addMat(clib.matrixOperations.Mat) clib.matrixOperations.updateMatByX(clib.matrixOperations.Mat,int32) clib.matrixOperations.updateMatBySize(clib.matrixOperations.Mat,clib.array.matrixOperations.Int)
Build Interface and Add to MATLAB Path
Build the matrixOperations
interface to the library.
build(definematrixOperations)
Building interface file 'matrixOperationsInterface.dll' for clib package 'matrixOperations'. Interface file 'matrixOperationsInterface.dll' built in folder 'C:\Users\Documents\MATLAB\matrixOperations'. To use the library, add the interface file folder to the MATLAB path. addpath('C:\Users\Documents\MATLAB\matrixOperations')
Either click the addpath
link in the message or type:
addpath('matrixOperations')
Note
You can repeat the generate, define, and build steps. However, once you display help
for or call functions in the library, you cannot update the definition file in the same
MATLAB session. Either restart MATLAB or create a new definition file by using the PackageName
name-value argument for the clibgen.generateLibraryDefinition
function.
To call functions in the library, continue with the next step.