Get path from running app
조회 수: 24 (최근 30일)
이전 댓글 표시
Josep Llobet
2021년 9월 10일
댓글: Abolfazl Chaman Motlagh
2021년 9월 10일
As we saw in Get path from runnig script to obtain in a automated way the path where our MATLAB file was running,
there is a comand for obatin the path of the execution of our MATLAB App?
The aim is used it in the StartupFcn function.
Thank you!
댓글 수: 4
Abolfazl Chaman Motlagh
2021년 9월 10일
glad to help
you can put local direction using pwd in your app.
imread([pwd '\imagesfolder\image.jpg'])
채택된 답변
Abolfazl Chaman Motlagh
2021년 9월 10일
if you mean path of location which the app comes up, can't you just use pwd?
i use it before in StartupFcn. and it work correctly even after compile for standalone desktop app.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!