MATLAB: Solve equation and standalone program

MATLAB Compilersolve

Hi ! I created a matlab code that uses the solve function provided by the Symbolic Math Toolbox. The code works fine. Then I want to create a standalone program using the matlab compiler. Apparently the Symbolic Math Toolbox can't be included during the compilation. Do you have an idea, advice… ?
Thanks.
Regards

Best Answer

If the equations are pre-determined and only coefficients need to be determined, then you can use matlabFunction() to generate the MATLAB Code into a file. Then set up your program to not generate the equations and instead call upon the pre-saved MATLAB to determine the results. This second program can then be compiled.