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

조회 수: 1 (최근 30일)
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?

채택된 답변

Sebastian Holmqvist
Sebastian Holmqvist 2012년 8월 9일
pwd also returns the current path. This is what I use in my GUIs.
  댓글 수: 2
Sebastian Holmqvist
Sebastian Holmqvist 2012년 8월 10일
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개)

Image Analyst
Image Analyst 2012년 8월 9일
That's in the variable called ctfroot.
  댓글 수: 1
Bíró
Bíró 2012년 8월 9일
Somehow value of this variable is the mcr cache path what is in user temp folder. I don't know why.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by