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

4 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Sebastian Holmqvist
Sebastian Holmqvist el 9 de Ag. de 2012
pwd also returns the current path. This is what I use in my GUIs.
  2 comentarios
Sebastian Holmqvist
Sebastian Holmqvist el 10 de Ag. de 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.

Iniciar sesión para comentar.

Más respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre Standalone Applications en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by