How to deploy when using 'syms' and 'solve' with function input arguments to consist the equation in MATLAB Compiler
Show older comments
Though there is the document "Deploy Generated MATLAB Functions from Symbolic Expressions with MATLAB Compiler", I could not apply to the following code using 'syms' and 'solve' having function input arguments to consist the equation from the Symbolic Math Toolbox.
function sample(a, b, c)
syms x
eqn = a*x^2 + b*x + c == 0;
s = solve(eqn);
y = vpa(s);
disp(y)
end
This is the error message when I just try to use functions from the Symbolic Math Toolbox.
>> ! sample 1 2 3
Unrecognized function or variable 'syms'.
Error in sample (line 2)
'syms' was excluded from packaging for the MATLAB Runtime environment according to the MATLAB Compiler license.
Have the application owner either resolve the file or function from the code, or use the MATLAB function "isdeployed" to ensure the function is not invoked in the deployed component.
Contact the application owner for more details.
Accepted Answer
More Answers (0)
Categories
Find more on Application Deployment in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!