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

2 views (last 30 days)
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?

Accepted Answer

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

Sign in to comment.

More Answers (1)

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

Sign in to comment.

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!