function varargout = zhengfansuan(varargin)
% ZHENGFANSUAN M-file for zhengfansuan.fig
% ZHENGFANSUAN, by itself, creates a new ZHENGFANSUAN or raises the existing
% singleton*.
%
% H = ZHENGFANSUAN returns the handle to a new ZHENGFANSUAN or the handle to
% the existing singleton*.
%
% ZHENGFANSUAN('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in ZHENGFANSUAN.M with the given input arguments.
%
% ZHENGFANSUAN('Property','Value',...) creates a new ZHENGFANSUAN or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before zhengfansuan_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to zhengfansuan_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
% Copyright 2002-2003 The MathWorks, Inc.
% Edit the above text to modify the response to help zhengfansuan
% Last Modified by GUIDE v2.5 12-May-2009 20:27:26
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @zhengfansuan_OpeningFcn, ...
'gui_OutputFcn', @zhengfansuan_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 zhengfansuan is made visible.
function zhengfansuan_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 zhengfansuan (see VARARGIN)
% Choose default command line output for zhengfansuan
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes zhengfansuan wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = zhengfansuan_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 radiopositive.
function radiopositive_Callback(hObject, eventdata, handles)
% hObject handle to radiopositive (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of radiopositive
set(hObject,'Value', get(hObject,'Max'))
set(findobj(gcf,'Tag','radioinversion'),'Value',...
get(findobj(gcf,'Tag','radioinversion'),'Min'))
% --- Executes on button press in radioinversion.
function radioinversion_Callback(hObject, eventdata, handles)
% hObject handle to radioinversion (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of radioinversion
set(hObject,'Value', get(hObject,'Max'))
set(findobj(gcf,'Tag','radiopositive'),'Value',...
get(findobj(gcf,'Tag','radiopositive'),'Min'))
% --------------------------------------------------------------------
function Untitled_8_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_8 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function Untitled_9_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_9 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function Untitled_4_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_4 (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 computerbutton.
function computerbutton_Callback(hObject, eventdata, handles)
% hObject handle to computerbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
hrp=findobj(gcf,'Tag','radiopositive');
hri=findobj(gcf,'Tag','radioinversion');
if(get(hrp,'Value')==get(hrp,'Max'))
B1=1.8;
L1=0.3;
A1=0.9;
S=87321.236;
Bm=B1;
Am=A1;
[dB1,dL1,dA1]=Gauss(Bm,Am,S)
B2=B1+dB1;
L2=L1+dL1;
A2=A1+dA1;
string=['B2=' num2str(B2) ' ' 'L2=' num2str(L2) ' ' 'A2=' num2str(A2)];
Data=1:64;Data=(Data'*Data)/64;
h=msgbox(string,'正算结果','custom',Data,hot(64))
else
L1=0.3;
B1=1.8;
L2=0.5;
B2=1.2;
[InvA2,InvA1,InvS]=InvGuass(B1,L1,B2,L2);
string=['A2=' num2str(InvA2) ' ' 'A1=' num2str(InvA1) ' ' 'S=' num2str(InvS)];
Data=1:64;Data=(Data'*Data)/64;
h=msgbox(string,'反算结果','custom',Data,hot(64))
end
% --- Executes on button press in closebutton.
function closebutton_Callback(hObject, eventdata, handles)
% hObject handle to closebutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
大地主题正反算
2星 需积分: 19 72 浏览量
2014-08-27
21:15:05
上传
评论 2
收藏 7KB ZIP 举报
weiwei19860701
- 粉丝: 0
- 资源: 5
最新资源
- 高等数学第一章第二节数列的极限
- Python 版冒泡排序算法源代码
- tensorflow-gpu-2.7.2-cp38-cp38-manylinux2010-x86-64.whl
- tensorflow-2.7.3-cp39-cp39-manylinux2010-x86-64.whl
- tensorflow-2.7.2-cp39-cp39-manylinux2010-x86-64.whl
- Python版本快速排序源代码
- Python 语言版的快速排序算法实现
- 450815388207377安卓_base.apk
- 超微主板 X9DRE-TF+ bios 支持 nvme启动
- 基于Python通过下载气象数据和插值拟合离散数据曲线实现对寒潮过程的能量分析
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈