Eghbal
Eghbal

Reputation: 3783

Find location of current mlapp-file (app designer) in MATLAB R2016a

I'm using pwd function to generate current path in app designer of MATLAB R2016a but this function finds MATLAB current folder (main window of MATLAB) not app designer current folder. What should I do?

Upvotes: 0

Views: 2595

Answers (1)

Buskebam
Buskebam

Reputation: 21

I was also looking for the answer of your question. In the comments of your question the hardest part of the problem was given by "excaza". But I eventually used:

[directory,~,~] = fileparts(mfilename('fullpath'));

Good luck

Upvotes: 2

Related Questions