MATLAB code runs but it throws error once compiled.

2 Ansichten (letzte 30 Tage)
Demian Augusto Vera
Demian Augusto Vera am 2 Mai 2020
Beantwortet: Walter Roberson am 8 Dez. 2024
Hi, everyone. I made a program that seems to work as I expected (when I run .m file from the editor), but when I try to use it in the GUI/compiled version, it crashes. I debugged it and as I can see, the problem comes from calling a function that uses the legendreP() built-in function. I don't know how to fix, since that's the only built-in functions that fails.
Thank!

Antworten (2)

BhaTTa
BhaTTa am 8 Dez. 2024
If the error is coming from legendreP() function please refer: https://www.mathworks.com/matlabcentral/answers/373317

Walter Roberson
Walter Roberson am 8 Dez. 2024
legendreP is part of the Symbolic toolbox. Nothing in the Symbolic toolbox can be compiled.

Kategorien

Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by