Main Content

Deploy Standalone Applications

Create and deploy standalone applications

Create and deploy standalone applications with Simulink® Compiler™ to run simulations on target machines that do not have MATLAB® and Simulink installed.

You can create and deploy standalone applications written in MATLAB code or built in MATLAB App Designer. To run a standalone application, install MATLAB Runtime. For more information, see Install and Configure MATLAB Runtime.


simulink.compiler.configureForDeploymentConfigure Simulink.SimulationInput object for deployment with Simulink Compiler
simulink.compiler.setExternalInputsFcnSet callback to specify data to each external root inport port block at the start of each simulation step
simulink.compiler.setExternalOutputsFcnSet callback to read external root outport block data after each simulation step
simulink.compiler.setPostStepFcnRegister a callback to run after each simulation step
simulink.compiler.genappGenerate MATLAB App to simulate model and deploy application
simulink.compiler.getTunableVariablesFind names of all tunable variables
simulink.compiler.modifyParametersTune block parameters at runtime via workspace variables
simulink.compiler.stopSimulationStop a long running simulation
simulink.compiler.loadEnumTypesConfigure model with enum types for deployment
exportToFMU2CSExport Simulink model to Functional Mock-up Unit (FMU)
simSimulate a Simulink model
Simulink.SimulationInputCreates SimulationInput objects to make changes to a model for multiple or individual simulations
mccCompile MATLAB functions for deployment
deploytoolOpen a list of application deployment apps


Deploy Simulations with Tunable Parameters

Create and deploy a simulation from a MATLAB function.

Deploy an App Designer Simulation with Simulink Compiler

Create and deploy a simulation using App Designer.

Simulation Callbacks for Deployable Applications

Debugging tips and best practices.

Generate, Modify and Deploy a MATLAB App for a Simulink Model

Generate a MATLAB app with the simulink.compiler.genapp function and deploy it. Explore options to modify the generated app.

Related Information

Featured Examples