Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

2 vues (au cours des 30 derniers jours)
farzad
farzad le 19 Mar 2020
Clôturé : MATLAB Answer Bot le 20 Août 2021
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 commentaires
Geoff Hayes
Geoff Hayes le 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 le 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

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by