フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Will an app run an mfile after cmpiling if working directory is not the exe installation directory ?

2 ビュー (過去 30 日間)
farzad
farzad 2020 年 3 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi all
I have an mfile with some other function mfiles that this main mfile runs them all inside a main folder.there are also subfolders that include the input files and output files to be created.
I need to make an interface, an app, but also compile the file to Exe. so since in the app code, I use the user input uigetdir to run the main mfile in that main folder, after making the exe file, there will be no more mfile there !!!
So how should I handle this ? should I incorporate the main mfile inside the app line ? how about the other mfiles that are functions ?
  4 件のコメント
Geoff Hayes
Geoff Hayes 2020 年 3 月 19 日
farzad - perhaps I've misunderstood your original question, but presumably all the functions that you need will be compiled into your app (or there must be a way to ensure that those files are included at compile time). Unfortunately, I don't have the toolbox to create an exe and so am unsure of what really happens. Perhaps you add the files with Add Files described at Create Standalone Application Using Application Compiler App.
farzad
farzad 2020 年 3 月 19 日
I tried that , what happens is that the mfiles are copied in the installation folder, and only the app is compiled into the EXE file

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by