Appdesigner compiled program runtime behavior different
2 次查看(过去 30 天)
显示 更早的评论
I am having a little trouble with compiling a standalone app. More specfically, the behavior.
I have a custom function that accepts a number of inputs, including a list of files from the uigetfiles() function.
When I run the program through the app designer, everything works fine. However, if I compile the app, the function is not happy with the files variable. If it is just one file, the error is Undefined function 'myFunction' for input arguments of type 'char'. If it is a list of files, the error is Undefined function 'myFunction' for input arguments of type 'cell'.
I am not sure if it is a problem with the function being setup to take different inputs (char array vs cell list), or if the compiler is not actually including the myFunction.m in the program?
2 个评论
Mohammad Sami
2020-9-18
Is the function myfunction.m in a separate file.
When compiling the app do you see it in the list of files detected by the compiler ?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!