Once the MEX object has been compiled it can then be called by a MATLAB script via the provided MATLAB class. The class provides an equivalent MATLAB function for each C Model function in the API as well as an model object.
Calling these functions automatically translates the MATLAB data-types, passes them to the C Model, and executes the relevant function. Memory allocation and deallocation within the C Model is automatically taken care of.
An example script run_xdfe_nr_prach_v2_0_mex.m is provided to show how the MEX object is called via the MATLAB class.