software applications report
function varargout = projectf(varargin) % PROJECTF MATLAB code for projectf.fig % PROJECTF, by itself, creates a new PROJECTF or raises the existing % singleton*. % % H = PROJECTF returns the handle to a new PROJECTF or the handle to % the existing singleton*. % % PROJECTF('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in PROJECTF.M with the given input arguments. % % PROJECTF('Property','Value',...) creates a new PROJECTF or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before projectf_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to projectf_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 projectf % Last Modified by GUIDE v2.5 02-Dec-2017 01:31:40 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @projectf_OpeningFcn, ... 'gui_OutputFcn', @projectf_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(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 projectf is made visible. function projectf_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 projectf (see VARARGIN) % Choose default command line output for projectf handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes projectf wait for user response (see UIRESUME) % uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = projectf_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 on button press in six. function six_Callback(hObject, eventdata, handles) % hObject handle to six (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'6'); set(handles.inputastext,'string',str); % --- Executes on button press in seven. function seven_Callback(hObject, eventdata, handles) % hObject handle to seven (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'7'); set(handles.inputastext,'string',str); % --- Executes on button press in eight. function eight_Callback(hObject, eventdata, handles) % hObject handle to eight (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'8'); set(handles.inputastext,'string',str); % --- Executes on button press in nine. function nine_Callback(hObject, eventdata, handles) % hObject handle to nine (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'9'); set(handles.inputastext,'string',str); % --- Executes on button press in zero. function zero_Callback(hObject, eventdata, handles) % hObject handle to zero (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'0'); set(handles.inputastext,'string',str); % --- Executes on button press in euqal. function euqal_Callback(hObject, eventdata, handles) % hObject handle to euqal (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=eval(str); set(handles.textasoutput,'string',str); % --- Executes on button press in power2. function power2_Callback(hObject, eventdata, handles) % hObject handle to power2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'^2'); set(handles.inputastext,'string',str); % --- Executes on button press in power3. function power3_Callback(hObject, eventdata, handles) % hObject handle to power3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'^3'); set(handles.inputastext,'string',str); % --- Executes on button press in logarthim. function logarthim_Callback(hObject, eventdata, handles) % hObject handle to logarthim (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'log('); set(handles.inputastext,'string',str); % --- Executes on button press in point. function point_Callback(hObject, eventdata, handles) % hObject handle to point (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'.'); set(handles.inputastext,'string',str); % --- Executes on button press in adition. function adition_Callback(hObject, eventdata, handles) % hObject handle to adition (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'+'); set(handles.inputastext,'string',str); % --- Executes on button press in division. function division_Callback(hObject, eventdata, handles) % hObject handle to division (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'/'); set(handles.inputastext,'string',str); % --- Executes on button press in maltiplication. function maltiplication_Callback(hObject, eventdata, handles) % hObject handle to maltiplication (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'*'); set(handles.inputastext,'string',str); % --- Executes on button press in one. function one_Callback(hObject, eventdata, handles) % hObject handle to one (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'1'); set(handles.inputastext,'string',str); % --- Executes on button press in two. function two_Callback(hObject, eventdata, handles) % hObject handle to two (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'2'); set(handles.inputastext,'string',str); % --- Executes on button press in three. function three_Callback(hObject, eventdata, handles) % hObject handle to three (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'3'); set(handles.inputastext,'string',str); % --- Executes on button press in four. function four_Callback(hObject, eventdata, handles) % hObject handle to four (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'4'); set(handles.inputastext,'string',str); % --- Executes on button press in five. function five_Callback(hObject, eventdata, handles) % hObject handle to five (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'5'); set(handles.inputastext,'string',str); % --- Executes on button press in clear. function clear_Callback(hObject, eventdata, handles) % hObject handle to clear (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(handles.inputastext,'string',''); set(handles.textasoutput,'string',''); % --- Executes on button press in sine. function sine_Callback(hObject, eventdata, handles) % hObject handle to sine (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'sin(pi/180*'); set(handles.inputastext,'string',str); % --- Executes on button press in cosine. function cosine_Callback(hObject, eventdata, handles) % hObject handle to cosine (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'cos(pi/180*'); set(handles.inputastext,'string',str); % --- Executes on button press in tangent. function tangent_Callback(hObject, eventdata, handles) % hObject handle to tangent (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'tan(pi/180*'); set(handles.inputastext,'string',str); % --- Executes on button press in pi. function pi_Callback(hObject, eventdata, handles) % hObject handle to pi (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'pi'); set(handles.inputastext,'string',str); % --- Executes on button press in power. function power_Callback(hObject, eventdata, handles) % hObject handle to power (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'^'); set(handles.inputastext,'string',str); % --- Executes on button press in pushbutton25. function pushbutton25_Callback(hObject, eventdata, handles) % hObject handle to pushbutton25 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'('); set(handles.inputastext,'string',str); % --- Executes on button press in pushbutton26. function pushbutton26_Callback(hObject, eventdata, handles) % hObject handle to pushbutton26 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,')'); set(handles.inputastext,'string',str); % --- Executes on button press in subtraction. function subtraction_Callback(hObject, eventdata, handles) % hObject handle to subtraction (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'-'); set(handles.inputastext,'string',str); % --- Executes on button press in arcsine. function arcsine_Callback(hObject, eventdata, handles) % hObject handle to arcsine (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'asin(pi/180*'); set(handles.inputastext,'string',str); % --- Executes on button press in arccose. function arccose_Callback(hObject, eventdata, handles) % hObject handle to arccose (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'acos(pi/180*'); set(handles.inputastext,'string',str); % --- Executes on button press in arctane. function arctane_Callback(hObject, eventdata, handles) % hObject handle to arctane (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'atan(pi/180*'); set(handles.inputastext,'string',str); % --- Executes on button press in persantege. function persantege_Callback(hObject, eventdata, handles) % hObject handle to persantege (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); s=str2double(str); per=s/100; t=num2str(per); set(handles.textasoutput,'string',t); % --- Executes on button press in exponential. function exponential_Callback(hObject, eventdata, handles) % hObject handle to exponential (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'exp('); set(handles.inputastext,'string',str); % --- Executes on button press in squareroots. function squareroots_Callback(hObject, eventdata, handles) % hObject handle to squareroots (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'sqrt('); set(handles.inputastext,'string',str); % --- Executes on button press in imaginarypartofacomplex. function imaginarypartofacomplex_Callback(hObject, eventdata, handles) % hObject handle to imaginarypartofacomplex (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'imag('); set(handles.inputastext,'string',str); % --- Executes on button press in factorialn. function factorialn_Callback(hObject, eventdata, handles) % hObject handle to factorialn (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'factorial('); set(handles.inputastext,'string',str); % --- Executes on button press in pushbutton37. function pushbutton37_Callback(hObject, eventdata, handles) % hObject handle to pushbutton37 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'10^'); set(handles.inputastext,'string',str); % --- Executes on button press in signchange. function signchange_Callback(hObject, eventdata, handles) % hObject handle to signchange (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'String'); s=str2double(str); b=-(s); t=num2str(b); set(handles.inputastext,'string',t); % --- Executes on button press in hyperbolicsin. function hyperbolicsin_Callback(hObject, eventdata, handles) % hObject handle to hyperbolicsin (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in arctane. str=get(handles.inputastext,'string'); str=strcat(str,'asinh(pi/180*'); set(handles.inputastext,'string',str); % --- Executes on button press in hyperboliccos. function hyperboliccos_Callback(hObject, eventdata, handles) % hObject handle to hyperboliccos (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'acosh(pi/180*'); set(handles.inputastext,'string',str); % --- Executes on button press in hyperbolictan. function hyperbolictan_Callback(hObject, eventdata, handles) % hObject handle to hyperbolictan (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) str=get(handles.inputastext,'string'); str=strcat(str,'atanh(pi/180*'); set(handles.inputastext,'string',str);