- Commonly used built-in functions which cannot be deployed: https://www.mathworks.com/help/compiler/unsupported-functions.html
- MATLAB Compiler support by toolbox: https://www.mathworks.com/products/compiler/compiler_support.html
Why do I receive a warning that files or functions are "excluded from packaging" while creating a standalone application using MATLAB Compiler?
36 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2021-12-21
编辑: MathWorks Support Team
2024-8-31
Why do I receive warnings saying that a file or function is "excluded from packaging" in the Packaging Log or MATLAB Command Window, while trying to create a standalone application using MATLAB Compiler?
Warning: In "C:/path/to/mfile.m", "function" are excluded from
packaging for the MATLAB Runtime environment according to the MATLAB Compiler license.
Either remove the file or function from your code, or use the MATLAB function
"isdeployed" to ensure the function is not invoked in the deployed component.
In older versions of MATLAB:
[Warning: Excluded "C:/path/to/mfile.m",
reason: The file or function has been excluded from packaging for the "MCR"
target environment according to the "Compiler" license. Either remove the file
or function from your code, or use the MATLAB function "isdeployed" to ensure
the function is not invoked in the deployed component.]
采纳的回答
MathWorks Support Team
2024-8-31
编辑:MathWorks Support Team
2024-8-31
MATLAB Compiler does not support the deployment of all built-in functions. If a user invokes an unsupported function in a deployed application, the application will not work as expected. Starting MATLAB R2017a, we added a feature to warn users if they are using an unsupported function in their deployed application.
Ensure that you are not using any unsupported functions or Toolbox functionality in your deployed application. Refer to the following resources for a complete list of unsupported functions:
If you see warnings about functions even though you are not directly invoking them in your code, please contact MathWorks Technical Support:
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!