GUI errors
for the GUI... the only errors i am getting starts here
e1,e2,e3 are edit boxes, where I am taking the numbers to put into an equation. I was told that they were text; so I have to convert from the text using str2num so i did that
?? Error using ==> str2num at 33
Requires string or character array input.
Error in ==> PITA>pushbutton1_Callback at 152
R=str2num(get(handles.e1,'String'));
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> PITA at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
guidemfile>@(hObject,eventdata)PITA('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback
e1,e2,e3 are edit boxes, where I am taking the numbers to put into an equation. I was told that they were text; so I have to convert from the text using str2num so i did that
[FONT=Courier New][SIZE=2] [SIZE=2][FONT=Courier New]R=str2num(get(handles.e1,[/FONT][/SIZE][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'String'[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]));[/SIZE][/FONT] [SIZE=2][FONT=Courier New]L=str2num(get(handles.e2,[/FONT][/SIZE][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'String'[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]));[/SIZE][/FONT] [SIZE=2][FONT=Courier New]C=str2num(get(handles.e3,[/FONT][/SIZE][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'String'[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]));[/SIZE][/FONT] [/SIZE][/FONT]but when i run the program i get this message
?? Error using ==> str2num at 33
Requires string or character array input.
Error in ==> PITA>pushbutton1_Callback at 152
R=str2num(get(handles.e1,'String'));
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> PITA at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
guidemfile>@(hObject,eventdata)PITA('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback
0