MATLAB: I get the following error , when i run the code for GUI for robot manupulator, please help me ….

gui for robot

Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in untitled (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)untitled('btn_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

Best Answer

Is your complete error message (including first line) this?
Undefined function or variable 'btn_forward_Callback'.
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in untitled (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)untitled('btn_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
This first line is the key to the error I created. I deleted the callback function for a button I created called btn_forward. To fix it, I need to either delete the button from the fig file, or add the btn_forward_callback function back to the code file.
% --- Executes on button press in btn_forward.
function btn_forward_Callback(hObject, eventdata, handles)
% hObject handle to btn_forward (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
Related Question