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

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?

 采纳的回答

pwd also returns the current path. This is what I use in my GUIs.

2 个评论

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.

请先登录,再进行评论。

更多回答(1 个)

That's in the variable called ctfroot.

1 个评论

Somehow value of this variable is the mcr cache path what is in user temp folder. I don't know why.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 MATLAB Compiler 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by