Enterprise Deployment with MATLAB Production Server
MATLAB
Production Server™ lets you run MATLAB functions on a server and access them via client applications.
You create applications in MATLAB, package them using the Production Server Compiler
app or the compiler.build.productionServerArchive
function in
MATLAB
Compiler SDK™, and deploy them to the MATLAB
Production Server. Access deployed packages through client applications written
in Java®, .NET, Python®, C, or C++ using client-specific libraries, or through
HTTP/HTTPS requests using the RESTful API.
For information on how to write client applications using the RESTful API, Java, .NET, Python, C, and C++, see Client Programming (MATLAB Production Server).
Apps
Production Server Compiler | Package MATLAB programs for deployment to MATLAB Production Server |
Functions
Objects
Topics
Deployable Archive Creation
- Create Deployable Archive for MATLAB Production Server
Learn how to package a MATLAB function into a deployable archive for MATLAB Production Server. - Package Deployable Archives from Command Line
Package MATLAB applications into deployable archives from the command line using themcc
command.
MATLAB Programming to Support In-Memory Caching
- Data Caching Basics
Set up the server to use Redis™, start a persistence service, and create a data cache. - Manage Application State in Deployed Archives
Test application before deployment and cache data in application archives deployed to MATLAB Production Server.
MATLAB Programming to Support Custom Metrics
- Create Custom Prometheus Metrics
This example shows how to create custom Prometheus® metrics on the server and retrieve them using the metrics service.
MATLAB Programming Guidelines
- MATLAB Coding Guidelines
Best practices for writing MATLAB code when deploying to MATLAB Production Server. - State-Dependent Functions
Dealing with MATLAB functions that carry state. - Deploying MATLAB Functions Containing MEX Files
How to include MEX files when deploying MATLAB functions. - Supported MATLAB Data Types for Client and Server Marshaling
List of supported and unsupported MATLAB data types. - Modifying Deployed Functions
How to modify and redeploy MATLAB functions.
Client Applications
- Create MATLAB Production Server Java Client Using MWHttpClient Class (MATLAB Production Server)
Define an interface, instantiate a static proxy object, and then call the deployed function. - Create a C# Client (MATLAB Production Server)
Learn how to call a MATLAB function deployed to MATLAB Production Server from a C# application. - Create a Python Client (MATLAB Production Server)
Learn how to call a MATLAB function deployed to MATLAB Production Server from a Python application. - Create a C++ Client (MATLAB Production Server)
Learn how to call a MATLAB function deployed to MATLAB Production Server from a C++ application.
Testing
- Test Client Data Integration Against MATLAB
Test the integration code used by your client against MATLAB. - Test Web Request Handlers
Configure access to the routes file in the Production Server Compiler app, then test MATLAB functions for deployment to MATLAB Production Server.
Excel Add-Ins
- Create and Install Deployable Archive with Excel Integration for MATLAB Production Server
Learn how to create a deployable archive with Excel® integration for MATLAB Production Server using a MATLAB function.
Parallel Computing
- Use Parallel Computing Resources in Deployable Archives
Pass a cluster profile to a deployable archive that uses Parallel Computing Toolbox™ or MATLAB Parallel Server™.
Troubleshooting
Testing
- MATLAB Not Responding to Web Requests Made to Test Server
Troubleshoot why MATLAB does not respond to web requests made from MATLAB to a local test server.
Excel Add-In
- XLA File Not Generated
Solution to.xla
file not being generated. - Server Configuration Add-in Not Enabled
Solution to enable Server Configuration add-in. - Error Using a Variable Number of Outputs
Solution to support variable number of outputs.