Clear Filters
Clear Filters

Error with GUI window

1 view (last 30 days)
Aaron Smith
Aaron Smith on 22 May 2017
Edited: Aaron Smith on 22 May 2017
I have a GUI window with only two push buttons. Upon clicking the first, the callback will generate a uidir to select a folder from which to work. Then the file will be reformatted and saved as a collection of smaller files. This works well. The other pushbutton is simply intended to close this current window and open another. The problem is that when I open the figure and press pushbutton one i get the following error:
Undefined function 'Window_one' for input arguments of type 'char'.
Error in @(hObject,eventdata)Window_one('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
From my previous experience making GUI windows, this likely means there is a shortage of handles and I have put nothing in the opening function of the code. However, I have not used the handles structure to refer to any of the variables in the code as they do not need to be shared among other callbacks and do not affect a figure. Do I need to add handles structure to some of the variables (though I don't see where i would) and add them to the opening function or could the error be due to something else?

Answers (0)

Categories

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

Products

Community Treasure Hunt

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

Start Hunting!