91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 725KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-20
  • 語言: Matlab
  • 標簽:

資源簡介

利用MATLAB GUI設計實現一個圖形用戶界面的計算器程序。 1.具有友好的用戶圖形界面。實現十進制數的加、減、乘、除、乘方、取模等簡單計算。 2.科學計算函數,包括(反)正弦、(反)余弦、(反)正切、(反)余切、開方、指數等函數運行。 3.能夠保存上次歷史計算的答案,先是答案存儲器中得內容。 4.有清除鍵,能清除操作,并對不正確的表達式能指出其錯誤原因。

資源截圖

代碼片段和文件信息

function?varargout?=?calc(varargin)
%?CALC?M-file?for?calc.fig
%??????CALC?by?itself?creates?pushbutton20?new?CALC?or?raises?the?existing
%??????singleton*.
%
%??????H?=?CALC?returns?the?handle?to?pushbutton20?new?CALC?or?the?handle?to
%??????the?existing?singleton*.
%
%??????CALC(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?CALC.M?with?the?given?input?arguments.
%
%??????CALC(‘Property‘‘Value‘...)?creates?pushbutton20?new?CALC?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?calc_OpeningFunction?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?calc_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?calc

%?Last?Modified?by?GUIDE?v2.5?28-Jun-2011?09:08:35

%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@calc_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@calc_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?calc?is?made?visible.
function?calc_OpeningFcn(hobject?eventdata?handles?varargin)
%?This?function?has?no?output?args?see?OutputFcn.
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?pushbutton20?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?varargin???command?line?arguments?to?calc?(see?VARARGIN)

%?Choose?default?command?line?output?for?calc
handles.output?=?hobject;

%?Update?handles?structure
guidata(hobject?handles);

%?UIWAIT?makes?calc?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
global?jj?shift
set(handles.text1‘String‘‘0.‘);
jj=0;
shift=0;

%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?calc_OutputFcn(hobject?eventdata?handles)?
%?varargout??cell?array?for?returning?output?args?(see?VARARGOUT);
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?pushbutton20?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?pushbutton1.
function?pushbutton1_Callback(hobject?event

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????18920??2011-06-28?10:32??matlab計算器源代碼\calc.asv

?????文件???????5575??2011-06-28?10:19??matlab計算器源代碼\calc.fig

?????文件??????21172??2011-06-28?10:34??matlab計算器源代碼\calc.m

?????文件????1146368??2013-07-05?21:45??matlab計算器源代碼\Matlab課程設計報告.doc

?????目錄??????????0??2013-07-05?21:45??matlab計算器源代碼

-----------?---------??----------?-----??----

??????????????1192035????????????????????5


評論

共有 條評論

相關資源