problem implementing the listbox directory in my GUI

1 view (last 30 days)
I took the example of a listbox directory from the help and inserted it into my custom GUI so I can select from files to process. Works fine the first time I double click to change directory or select file, but then after that it causes all uicontrols to throw an error when clicked: undefined function or method 'myGui' for input arguments of type struct.
Any ideas why it would work fine first time and not again? For example if I use the listbox to change directories, it works, then every click after that throws the error.

Accepted Answer

Walter Roberson
Walter Roberson on 2 Apr 2012
Your function myGui needs to be on your MATLAB path or else it will not be found after you change directories.
  2 Comments
Neal Wiggermann
Neal Wiggermann on 29 Jan 2015
Well, you are not alone, I spent over an hour trying to figure out this identical problem before finding this answer. Thanks Walter!

Sign in to comment.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!