Symbolic Math Toolbox の関数をコンパイルできないのはなぜですか?
6 views (last 30 days)
Show older comments
MathWorks Support Team
on 5 Jul 2017
Edited: MathWorks Support Team
on 17 Jun 2024
Symbolic Math Toolbox による関数、例えば sym を含む .m ファイルを MATLAB Compiler でコンパイルすると以下のようなエラーとなります。
関数または変数 'sym' が未定義です。
Accepted Answer
MathWorks Support Team
on 17 Jun 2024
Edited: MathWorks Support Team
on 17 Jun 2024
Symbolic Math Toolbox の sym, syms, str2sym といったシンボリック変数、式、関数、行列を作成する関数は MATLAB Compiler では対応しておりません。本 Toolbox で MATLAB Compiler に対応している機能は以下で確認することができます。
なお、sym, syms, str2sym をデプロイする代替案として、matlabFunction 関数を用いて、シンボリック式から MATLAB 関数を生成し、その関数を使用して、MATLAB Compiler でスタンドアロン アプリケーションを作成する方法が考えられます。具体的な例については、以下のドキュメントをご参照ください。
・MATLAB Compiler を使用してシンボリック式から生成された MATLAB 関数の展開
https://jp.mathworks.com/help/symbolic/deploy-generated-matlab-function-from-symbolic-expression.html
0 Comments
More Answers (0)
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!