MATLAB: In Regard of Feval error

hi
i have come across the following error –
Error using feval
Undefined function 'viewpm_Callback' for input arguments of type 'struct'.
Error in gui_mainfcn (line 96)
feval(varargin{:});
Error in radar_waveform_analyzer_18july (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)radar_waveform_analyzer_18july('viewpm_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
when i go to callback function of viewpm( pop-up menu in gui) i get no code for dat, however the concerned code is elsewhere in .m file. although i m able to run the gui , but its functionality has been changed. i am also attaching .m code file.
pls contribute and resolve.
Thanks and Regards,
Rahul sharma

Best Answer

Rahul - I looked at the code in your attachment (next time, just attach the m-file - there is no need to paste its contents into an rtf file and zip it up).
The error
Error using feval Undefined function 'viewpm_Callback' for input arguments of type 'struct'.
Error in gui_mainfcn (line 96) feval(varargin{:});
Error in radar_waveform_analyzer_18july (line 42) gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)radar_waveform_analyzer_18july('viewpm_Callback',hObject,
eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
indicates that the gui_mainfcn, which calls feval, cannot find the function viewpm_Callback. That is because this function (signature and body) is commented out in your attached file.
I created a simple GUI with a single pushbutton, and if I commented out its callback, then pressing the button resulted in the same error message that you observed.
I recommend that you uncomment this function, and try running the GUI again.