Problem in creating executable files using MATLAB.

"syms, vpa" 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.
Can anyone please tell me how to use "isdeployed" to address this problem?

回答 (1 件)

Image Analyst
Image Analyst 2023 年 4 月 17 日

1 投票

Like this:
if ~isdeployed
% Code to run only in the development environment, NOT to run in the compiled version.
syms a,b,c
vpa(..................)
end
% Code after this (outside the if block) will run
% in both the development environment AND in the compiled executable.

2 件のコメント

Harsh Kumar
Harsh Kumar 2023 年 4 月 21 日
Thank you
Image Analyst
Image Analyst 2023 年 4 月 21 日
If this Answer solves your original question, then could you please click the "Accept this answer" link to award the answerer with "reputation points" for their efforts in helping you? They'd appreciate it. Thanks in advance. 🙂 Note: you can only accept one answer (so pick the best one) but you can click the "Vote" icon for as many Answers as you want. Voting for an answer will also award reputation points.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2023a

質問済み:

2023 年 4 月 17 日

コメント済み:

2023 年 4 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by