主要内容

Deployment Considerations

R2026b

Before you package MATLAB® code for deployment, verify that your functions, toolboxes, and coding patterns are compatible with the deployment target. The following resources help you identify and resolve deployment issues.

Planning

PurposeResource
Check whether your toolboxes support deploymentCompiler Support for MATLAB and Toolboxes
Follow patterns and practices that ensure your code packages and runs correctly in deployed environmentsWrite Deployable MATLAB Code

Restrictions

PurposeResource
Identify functions that are not supported in deployed applicationsFunctions Not Supported for Compilation by MATLAB Compiler and MATLAB Compiler SDK
Understand language-level and framework-level restrictionsLimitations for MATLAB Compiler and MATLAB Compiler SDK

Run-Time Considerations

PurposeResource
Bundle and access data files at run timeInclude Additional Files in Packaged Applications
Load external shared librariesCalling Shared Libraries in Deployed Applications
Manage credentials without exposing secretsHandle Sensitive Information in Deployed Applications
Ensure code works across Windows, Linux, and macOSEnsure Multiplatform Portability for Compiled Applications

Web Apps

PurposeResource
Write apps that package and run cleanly on MATLAB Web App Server™Best Practices for Authoring Web Apps
Identify unsupported functionality for web appsWeb App Limitations and Unsupported Functionality

Simulink

PurposeResource
Identify supported Simulink® model configurationsSimulink Compiler Requirements and Limitations (Simulink Compiler)