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

33 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 4 de Mzo. de 2020
mfilename('fullpath')

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by