【正文】
)。)。,y1)。(17) 右括號“)”鍵的回調函數(shù):% Executes on button press in pushbutton20.function pushbutton20_Callback(hObject, eventdata, handles)% hObject handle to pushbutton20 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%右括號“)”鍵的回調函數(shù)。signs=get(,39。string39。.39。839。639。439。239。039。三、設計步驟: 運行matlab ,進入主界面。二、設計思路:每按下一個數(shù)字鍵或者符號鍵的時候,利用get(,39??丶傩员砜丶tyle類型TagStringFontSizeFontUnitsFontWeightVisibleBackgroundColorForegroundColorredgreenblueredgreenbluepushbuttonPushbutton1116pointsboldon00110Pushbutton22Pushbutton33Pushbutton44Pushbutton55Pushbutton66Pushbutton77Pushbutton88Pushbutton99pushbutton100pushbutton11+43pushbutton12-pushbutton13pushbutton14247。set(,39。set(,39。set(,39。set(,39。set(,39。)。signs=get(,39。,strcat(signs,39。string39。String39。(21) Exit鍵的回調函數(shù):% Executes on button press in pushbutton17.function pushbutton17_Callback(hObject, eventdata, handles)% hObject handle to pushbutton17 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%Exit鍵的回調函數(shù)。,IconData,IconCMap)。,39。,39。string39。set(,39。*39。(13) 減號“-”鍵的回調函數(shù):% Executes on button press in pushbutton9.function pushbutton12_Callback(hObject, eventdata, handles)% hObject handle to pushbutton9 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%減號“-”鍵的回調函數(shù)。string39。string39。string39。string39。string39。string39。)獲取當前輸入文本框edit1的string屬性,然后利用字符串執(zhí)行命令y1=eval(x)計算輸入文本框的表達式,得到的結果是字符型常量;然后利用字符串輸出格式控制函數(shù)y=sprintf(39。string39。(1) 數(shù)字鍵0的回調函數(shù):% Executes on button press in pushbutton3.function pushbutton10_Callback(hObject, eventdata, handles)% hObject handle to pushbutton3 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%數(shù)字鍵0的回調函數(shù):