📄 untitlend.m
字号:
function varargout = untitlend(varargin)
% 泡泡虫 M-file for 泡泡虫.fig
% 泡泡虫, by itself, creates a new 泡泡虫 or raises the existing
% singleton*.
%
% H = 泡泡虫 returns the handle to a new 泡泡虫 or the handle to
% the existing singleton*.
%
% 泡泡虫('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in 泡泡虫.M with the given input arguments.
%
% 泡泡虫('Property','Value',...) creates a new 泡泡虫 or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before 泡泡虫_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to 泡泡虫_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help 泡泡虫
% Last Modified by GUIDE v2.5 26-Nov-2004 11:34:29
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @untitlend_OpeningFcn, ...
'gui_OutputFcn', @untitlend_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin & isstr(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before 泡泡虫 is made visible.
function untitlend_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to 泡泡虫 (see VARARGIN)
% Choose default command line output for 泡泡虫
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes 泡泡虫 wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = untitlend_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;% --- Executes during object creation, after setting all properties.function screen_CreateFcn(hObject, eventdata, handles)% hObject handle to screen (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction screen_Callback(hObject, eventdata, handles)% hObject handle to screen (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of screen as text% str2double(get(hObject,'String')) returns contents of screen as a double% --- Executes on button press in buttion_clean.function buttion_clean_Callback(hObject, eventdata, handles)% hObject handle to buttion_clean (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)clearscreen% --- Executes on button press in buttion_back.function buttion_back_Callback(hObject, eventdata, handles)% hObject handle to buttion_back (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)
%-----------------------撤消功能----------------------------------
h=findobj('tag','screen') %获得显示屏的句柄h1=get(h,'string') %将显示屏的值的赋给h1
h1(length(h1))=[] %将最后一个数字设为空
set(h,'string',h1) %将改变后的字符串重新赋给h% --- Executes on button press in buttion_power.function buttion_power_Callback(hObject, eventdata, handles)% hObject handle to buttion_power (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)operator% --- Executes on button press in buttion_log.function buttion_log_Callback(hObject, eventdata, handles)% hObject handle to buttion_log (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)operator% --- Executes on button press in buttion_sqrt.function buttion_sqrt_Callback(hObject, eventdata, handles)% hObject handle to buttion_sqrt (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)operator% --- Executes on button press in button_sign.function button_sign_Callback(hObject, eventdata, handles)% hObject handle to button_sign (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in button_minus.function button_minus_Callback(hObject, eventdata, handles)% hObject handle to button_minus (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)operator% --- Executes on button press in button_divde.function button_divde_Callback(hObject, eventdata, handles)% hObject handle to button_divde (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)operator% --- Executes on button press in button_add.function button_add_Callback(hObject, eventdata, handles)% hObject handle to button_add (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)operator% --- Executes on button press in button_sub.function button_sub_Callback(hObject, eventdata, handles)% hObject handle to button_sub (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)operator% --- Executes on button press in pushbutton_9.function pushbutton_9_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_9 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in pushbutton_8.function pushbutton_8_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_8 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in pushbutton_7.function pushbutton_7_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_7 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in pushbutton_6.function pushbutton_6_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_6 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in pushbutton_5.function pushbutton_5_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_5 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in pushbutton_4.function pushbutton_4_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in pushbutton_3.function pushbutton_3_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in pushbutton_2.function pushbutton_2_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in pushbutton_1.function pushbutton_1_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in pushbutton_0.function pushbutton_0_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_0 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in pushbutton_pot.function pushbutton_pot_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_pot (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)connectstr% --- Executes on button press in pushbutton_equal.function pushbutton_equal_Callback(hObject, eventdata, handles)% hObject handle to pushbutton_equal (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%-----------------等号对映实现的功能--------------------------------
global str1
global str2
global mutex
global s
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -