Main Content

Deployable Archive Creation

Create archives from MATLAB® code for deployment to the server

A deployable archive contains compiled MATLAB code to deploy on a MATLAB Production Server™ instance. Generate a deployable archive using the function, the Production Server Compiler app, or the mcc command line compiler.

In most cases, you can generate the deployable archive on one platform and deploy to a server running on any other supported platform. Unless you add operating system-specific dependencies or content, such as MEX files or Simulink® simulations to your applications, the generated archives are platform-independent.


Production Server CompilerPackage MATLAB programs for deployment to MATLAB Production Server


expand all an archive for deployment to MATLAB Production Server for building deployable archives build results object
productionServerCompilerTest, build and package functions for use with MATLAB Production Server
mccCompile MATLAB functions for deployment
deploytoolOpen a list of application deployment apps


mps.cache.controlCreate a persistence service controller object
startStart a persistence service and attach it a to MATLAB session
stopStop a persistence service and detach it from a MATLAB session
restartRestart a persistence service and attach it to a MATLAB session
attachConnect a MATLAB session to a persistence service that is already running
detachDisconnect MATLAB session from a persistence service that is already running
pingTest whether the persistence service is reachable
versionVersion number for persistence provider


mps.cache.connectConnect to cache, or create a cache if it doesn't exist
bytesReturn the number of bytes of storage used by value stored at each key
clearRemove all keys and values from cache
flushWrite all locally modified keys to the persistence service
getFetch values of keys from cache
getpGet the value of a public cache property
isKeyDetermine if the cache contains specified keys
keysGet all keys from cache
lengthNumber of key-value pairs in the data cache
purgeFlush all local data to the persistence service
putWrite key-value pairs to cache
removeRemove keys from cache
retainStore remote keys from cache locally or return locally stored keys


mps.sync.mutexCreate a persistence service mutex
acquireAcquire advisory lock on persistence service mutex
ownCheck ownership of advisory lock on a persistence service mutex object
releaseRelease advisory lock on persistence service mutex


expand all

mps.cache.ControllerManage the life cycle of a persistence service in a MATLAB testing environment
mps.cache.DataCacheRepresent cache concept in MATLAB code
mps.sync.TimedRedisMutexRepresent a Redis persistence service mutex
mps.sync.TimedMATFileMutexRepresent a MAT-file persistence service mutex


Create Deployable Archives

Package Deployable Archives with Production Server Compiler App

Package MATLAB applications into deployable archives using the Production Server Compiler app.

Package Deployable Archives from Command Line

Package MATLAB applications into deployable archives from the command line using the mcc command.


Use Data Cache to Persist Data

Persist data between calls to a server instance.

Manage Persistent Data in Application Archives

This example shows how to calculate the shortest possible route between cities using persistence and MATLAB Production Server RESTful API.


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.

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™.