Deploy Standalone Applications
R2026bCreate 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 Download and Install MATLAB Runtime.
Functions
simulink.compiler.configureForDeployment | Configure Simulink.SimulationInput object for deployment with
Simulink
Compiler |
simulink.compiler.setExternalInputsFcn | Set callback to specify data to each external root inport port block at the start of each simulation step |
simulink.compiler.setExternalOutputsFcn | Register callback function to read and process data for top-level output ports during simulation |
simulink.compiler.setPostStepFcn | Register callback function to execute after each time step in simulation |
simulink.compiler.genapp | Generate MATLAB app to simulate model and deploy application |
simulink.compiler.genapptemplate | Generate a simulation app template from an existing simulation app (Since R2023a) |
simulink.compiler.getTunableVariables | Find names of all tunable variables |
simulink.compiler.getSimulationOutput | Fetch the partial simulation output during simulation run time (Since R2022a) |
simulink.compiler.modifyParameters | Tune block parameters at runtime via workspace variables |
simulink.compiler.stopSimulation | Stop a long running simulation |
sim | Run and script programmatic simulations of Simulink models |
Simulink.SimulationInput | Create Simulink.SimulationInput objects to make changes to
model for multiple or individual simulations |
mcc | Compile MATLAB functions for deployment |
Topics
- Deploy Simulations with Tunable Parameters
Create and deploy a simulation from a MATLAB function.
- Generate, Modify, and Deploy a MATLAB App for a Simulink Model
Generate a MATLAB app with the
simulink.compiler.genappfunction and deploy it. Explore options to modify the generated app.



