Get path from running app
31 次查看(过去 30 天)
显示 更早的评论
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!