MATLAB: I have 2 inteface one call another this is erreur disply

duplicate postMATLAB

??? Error using ==> feval
Undefined function or method 'uipanel2_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> interface at 43
gui_mainfcn(gui_State, varargin{:});
Error in ==> @(hObject,eventdata)interface('uipanel2_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uipanel CreateFcn
??? Error using ==> feval
Undefined function or method 'uipanel1_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> interface at 43
gui_mainfcn(gui_State, varargin{:});
Error in ==> @(hObject,eventdata)interface('uipanel1_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uipanel CreateFcn

Best Answer

You are using R2014a or earlier (R2011a it appears), and your GUIDE-created GUI is missing a function uipanel2_CreateFcn
You can probably add the following to your code:
function uipanel2_CreateFcn(varargin)
%dummy function to satisfy GUIDE