MATLAB: Accessing Functions on MATLAB Production Server (MPS) from a MATLAB script

apiMATLAB Production Servermps

I am investigating using MATLAB Production Server as a way to ensure everyone is using the same/latest version of a Simulink model or MATLAB function.
To my surprise I cannot find any documentation on how to call a function or model on an MPS instance from MATLAB itself.
I found documentation on how to do in Java, .NET, C and Python. https://www.mathworks.com/help/mps/client-programming.html
Does this feature exist and can someone point me to documentation on it?

Best Answer

Based on the documentation for the MATLAB Production Server on the Mathworks site, particularly in the "Production Deployment of MATLAB Programs" section (found here: https://www.mathworks.com/products/matlab-production-server/features.html#integration-with-enterprise-applications), it looks like there isn't a built in client for calling a function on an MPS instance directly from MATLAB. It looks like there are only native clients written for the four languages you mentioned.
However, functions from an MPS instance can be called using the RESTful API and JSON. The documentation for that is found here: https://www.mathworks.com/help/mps/restful-api-and-json.html.
This is more of a workaround, but the API could probably be called directly from MATLAB using the webread and webwrite functions. The documentation for these two functions is below:
webread: https://www.mathworks.com/help/matlab/ref/webread.html
webwrite: https://www.mathworks.com/help/matlab/ref/webwrite.html