Create a C MATLAB Production Server Client
To create a MATLAB® Production Server™ client:
Obtain the client runtime files installed in
.$MPS_INSTALL
/client/cIn consultation with the MATLAB programmer, agree on the MATLAB function signatures that comprise the services in the application.
Configure your system with the appropriate software for working with C/C++.
Initialize the MATLAB Production Server client runtime using
mpsInitializeEx()
.mpsClientRuntime* mpsruntime = mpsInitializeEx(MPS_CLIENT_1_1);
Create the client runtime configuration.
Create the client runtime context.
Create the required MATLAB data for the inputs and outputs of the function.
Evaluate the MATLAB functions.
Handle any errors.
Free system resources by cleaning up all MATLAB data and terminating the client connection.
For a complete example of an implementing a C++ client, see Create a C++ Client.