function result

handles.fig=figure();

handles.edit1=uicontrol('style','edit');
set(handles.edit1,'position',[100 300 100 20]);


handles.result=uicontrol('style','edit');
set(handles.result,'position',[350 200 70 60]);
set(handles.result,'String','0');

handles.calculate=uicontrol('style','pushbutton','string','calculate','position',[100 50 50 50]);
set(handles.calculate,'callback',@calculate_callback);
end


function calculate_callback(gcf,event_data,handles)
a=get(handles.edit1,'string');
handles.result=eval(a)
end



 >>>  edit1에 입력한값을calculate 버튼을 눌러서  result에다 출력을 하고싶은데요

   function calculate_callback(gcf,event_data,handles)

   a=get(handles.edit1,'string');            여기서 입력 인수가 부족하다고 뜨네요 ㅠ