3,423
社区成员
发帖
与我相关
我的任务
分享
% --- Executes on button press in decimal.
function decimal_Callback(hObject, eventdata, handles)
% hObject handle to num1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
textString = get(handles.editshowresult,'String');
if textString(end)=='.'
textString = textString;
else
textString = strcat(textString,'.');
end
set(handles.editshowresult,'String',textString)