フィルターのクリア

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 日
編集済み: 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 Center および File ExchangeMATLAB Compiler についてさらに検索

    製品


    リリース

    R2017a

    Community Treasure Hunt

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

    Start Hunting!

    Translated by