Find path of app when opening app using 'Open' menu from a different directory (App designer)

33 ビュー (過去 30 日間)
Dear All,
I need to save the output of an app to its folder, so I need to find out the app path when opening the app. This is easy, with pwd, when opening it by double click. However, if I open the app via Open menu in matlab, from a different directory, how to I find out the app path when opening it? (wanted to place this command in the startupFcn(app) function.
Please advise,
OL

採用された回答

Sean de Wolski
Sean de Wolski 2020 年 3 月 4 日
mfilename('fullpath')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by