Why do I receive a warning that files or functions are "excluded from packaging" while creating a standalone application using MATLAB Compiler?

36 次查看(过去 30 天)
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
编辑: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:
  1. Commonly used built-in functions which cannot be deployed: https://www.mathworks.com/help/compiler/unsupported-functions.html
  2. MATLAB Compiler support by toolbox: https://www.mathworks.com/products/compiler/compiler_support.html
If you see warnings about functions even though you are not directly invoking them in your code, please contact MathWorks Technical Support:

    更多回答(0 个)

    类别

    Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

    产品


    版本

    R2017a

    Community Treasure Hunt

    Find the treasures in MATLAB Central and discover how the community can help you!

    Start Hunting!

    Translated by