Appdesigner compiled program runtime behavior different

조회 수: 2 (최근 30일)
Shane Sullivan
Shane Sullivan 2020년 9월 18일
댓글: Shane Sullivan 2020년 9월 18일
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
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 ?
Shane Sullivan
Shane Sullivan 2020년 9월 18일
Yes, it is there. Turns out the problem is more Matlab trouble with NITF files. See here for a previous problem and simple fix: https://www.mathworks.com/matlabcentral/answers/578242-nitfread-not-working-matlab2020a-windows-10?s_tid=srchtitle
However, by default Matlab is not including the appropiate NITF related functions required. And when I add them manually the compiler complains about syntax errors in the NITF functions of Matlab. I think the ultimate problem is Mathworks needs some love on all the NITF functions in general.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by