Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
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 Comments
Geoff Hayes
Geoff Hayes on 19 Mar 2020
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 on 19 Mar 2020
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

Answers (0)

Community Treasure Hunt

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

Start Hunting!