Syms function with standalone application

5 ビュー (過去 30 日間)
sangjin kim
sangjin kim 2017 年 10 月 12 日
編集済み: Song-Hyun Ji 2023 年 6 月 14 日
Is there any method that I can make standalone application with syms function, using matlab compiler?? I want to use solve function so I have to use syms function... Actually, there is one way to solve this problem, quadratic formula. But I need a fundamental solution.

回答 (2 件)

Walter Roberson
Walter Roberson 2017 年 10 月 12 日
No, nothing in the symbolic toolbox can be compiled.
If you always have the same form of equation, then you can create the equation symbolically and solve it symbolically ahead of time, and then you can use matlabFunction with the 'file' option to write the solution to a .m file in a form that can be executed numerically.

Song-Hyun Ji
Song-Hyun Ji 2023 年 6 月 14 日
編集済み: Song-Hyun Ji 2023 年 6 月 14 日
Here are the example documentation and the answers page.
- Deploy Generated MATLAB Functions from Symbolic Expressions with MATLAB Compiler
- How to deploy when using 'syms' and 'solve' with function input arguments to consist the equation in MATLAB Compiler

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!