Effacer les filtres
Effacer les filtres

How can I get in code the path of currently running deployed matlab function

3 vues (au cours des 30 derniers jours)
I have a deployed standalone MATLAB GUI, and in the code I need the path where the deployed .exe located. Is there any solution for this?

Réponse acceptée

Sebastian Holmqvist
Sebastian Holmqvist le 9 Août 2012
pwd also returns the current path. This is what I use in my GUIs.
  2 commentaires
Bíró
Bíró le 9 Août 2012
It worked, thank you!
Sebastian Holmqvist
Sebastian Holmqvist le 10 Août 2012
pwd is actually an alias for cd. The difference is that with cd, you can also change the current directory while pwd only calls cd without arguments. See help cd for more info.

Connectez-vous pour commenter.

Plus de réponses (1)

Image Analyst
Image Analyst le 9 Août 2012
That's in the variable called ctfroot.
  1 commentaire
Bíró
Bíró le 9 Août 2012
Somehow value of this variable is the mcr cache path what is in user temp folder. I don't know why.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Environment Customization 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!

Translated by