Application Compiler not Including Toolbox Functions
Mostrar comentarios más antiguos
I have a uifigure-based application that works fine when run from Matlab itself. I'm now trying to compile and run it as a standalone version. However, I consistently observe errors that indicate a lack of toolbox support. For example, I am getting the error
Undefined function 'prctile' for input arguments of type 'double'
which corresponds to a missing Statistics toolbox. However, my local environment has the statistics toolbox!
The compiler will not let me add the statistics toolbox as a forced include; I can manually copy the toolboxes to my working directory, but that creates a lot of duplicate code and is frustrating to manage in git. How do I force matlab to include the correct code?
Respuestas (1)
Steven Lord
el 13 de Oct. de 2022
0 votos
Without seeing how you're trying to call prctile in your app it's going to be difficult or impossible to give a definitive answer, but if you're calling it in a callback function how is that callback specified? See the section "Fixing Callback Problems: Missing Functions" on this documentation page for a potential cause of this behavior and how to correct it.
2 comentarios
Theodore DuBose
el 13 de Oct. de 2022
Steven Lord
el 13 de Oct. de 2022
What happens if you use the %#function pragma to tell MATLAB Compiler that it should include the prctile function in the application?
%#function prctile
Categorías
Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!