Get path from running app
32 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Josep Llobet
le 10 Sep 2021
Commenté : Abolfazl Chaman Motlagh
le 10 Sep 2021
As we saw in Get path from runnig script to obtain in a automated way the path where our MATLAB file was running,
there is a comand for obatin the path of the execution of our MATLAB App?
The aim is used it in the StartupFcn function.
Thank you!
4 commentaires
Abolfazl Chaman Motlagh
le 10 Sep 2021
glad to help
you can put local direction using pwd in your app.
imread([pwd '\imagesfolder\image.jpg'])
Réponse acceptée
Abolfazl Chaman Motlagh
le 10 Sep 2021
if you mean path of location which the app comes up, can't you just use pwd?
i use it before in StartupFcn. and it work correctly even after compile for standalone desktop app.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!