standalone app using matlab compiler with external functions

I am using matlab compiler to create a stand alone application of a gui created using appdesigner. It compiles fine and recognizes the additional files (functions) used in the program. I can run it on the computer I used to compile but it does not work on other computers. I compiled the program to show the command prompt and it seems like it can't recognize the functions. Am I missing something? I am using Matlab 2018a.

7 件のコメント

Walter Roberson
Walter Roberson 2018 年 4 月 19 日
Which toolboxes does it need?
Samuel Park
Samuel Park 2018 年 4 月 19 日
it does not require any toolboxes. Just a few functions that I wrote myself.
Walter Roberson
Walter Roberson 2018 年 4 月 19 日
The extra files: are you making direct calls to them, or are you using function handles to them, or are you using their names in strings expecting that a lower-level feval() call will find the appropriate function ?
Samuel Park
Samuel Park 2018 年 4 月 19 日
Thanks for helping out. I am making direct calls to them. Again, it works on the computer that I compiled the application in. The compiled code does not run on other computers - however, the mlapp file works fine on them.
Walter Roberson
Walter Roberson 2018 年 4 月 19 日
Hold on -- are you using Package an Application, or are you using MATLAB Compiler SDK ?
Samuel Park
Samuel Park 2018 年 4 月 19 日
I am using Package an Application.
Walter Roberson
Walter Roberson 2018 年 4 月 19 日
Can you attach the mlapp for testing?

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2018 年 4 月 19 日

1 投票

Check out the suggestions in the FAQ: http://matlab.wikia.com/wiki/FAQ#My_standalone_executable_won.27t_run_on_the_target_computer._What_can_I_try.3F

In my experience, of which I have a lot with compiled apps, is that usually the problem comes down to you either forgot to ship a required file, or you aren't using the proper full path (folder + base file name) of some file you want to open in your code.

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

2018 年 4 月 19 日

回答済み:

2018 年 4 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by