Application Compiler not Including Toolbox Functions
显示 更早的评论
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?
回答(1 个)
Steven Lord
2022-10-13
0 个投票
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 个评论
Theodore DuBose
2022-10-13
Steven Lord
2022-10-13
What happens if you use the %#function pragma to tell MATLAB Compiler that it should include the prctile function in the application?
%#function prctile
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!