How to solve the following errors?

1 view (last 30 days)
CW
CW on 19 Apr 2019
Answered: Walter Roberson on 19 Apr 2019
Undefined function or variable 'extplottingIter'.
Error in FindConfinedRegionsIter (line 223)
extplottingIter
Error in APM_GUI>pushbutton8_Callback (line 482)
FindConfinedRegionsIter
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in APM_GUI (line 46)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)APM_GUI('pushbutton8_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

Answers (1)

Walter Roberson
Walter Roberson on 19 Apr 2019
You refer to extplottingIter . We do not have enough information to know whether that is a function name or the name of a variable. If it is intended to be a function, then it is not findable from pushbutton8_Callback, such as if is defined in a private function you do not have access t, or if it is a method of an object and you did not pass the object to it, or if it is a nested function inside a different function (and so is hidden from you), or if it is a function in a different .m that is not the first function in that .m and so is hidden from you.
If it is intended to be a variable, then it is not defined in the workspace of pusbutton8_Callback.
The most likely scenario is that it is a variable that you defined in a different callback, and which disappeared as soon as that other callback returned because it was a local variable there. See http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F

Categories

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

Tags

Community Treasure Hunt

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

Start Hunting!