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!