Matlab课程设计Word下载.docx
《Matlab课程设计Word下载.docx》由会员分享,可在线阅读,更多相关《Matlab课程设计Word下载.docx(12页珍藏版)》请在冰豆网上搜索。
MATLAB的GUI都有一个其他软件无法相较的优点:
它有MATLAB支撑。
凭借MATLAB强大的计算功能,可以使用GUI设计更为复杂的图形用户界面,更好的实现数据的人机交互处理。
而在地震勘探领域,GUI已有更大的利用空间。
MATLAB开发GUI地震数据显示工具,可以作为地震处理人员学习地震处理的起点。
MATLAB是基于矢量运算,而地震剖面就是一个矩阵。
用MATLAB来处理地震数据,用于学习研究地震处理的方方棉面,实在是方便实用。
因此,此次实验我利用GUI设计了地震组合法中的简单线性组合来绘制图形,以此来进行地震检波器的简单线性组合的方向特征曲线研究
一、题目
地震检波器的简单线性组合的方向特征曲线研究
二、源代码
functionvarargout=untitled3(varargin)
%UNTITLED3M-fileforuntitled3.fig
%UNTITLED3,byitself,createsanewUNTITLED3orraisestheexisting
%singleton*.
%
%H=UNTITLED3returnsthehandletoanewUNTITLED3orthehandleto
%theexistingsingleton*.
%UNTITLED3('
CALLBACK'
hObject,eventData,handles,...)callsthelocal
%functionnamedCALLBACKinUNTITLED3.Mwiththegiveninputarguments.
Property'
'
Value'
...)createsanewUNTITLED3orraisesthe
%existingsingleton*.Startingfromtheleft,propertyvaluepairsare
%appliedtotheGUIbeforeuntitled3_OpeningFunctiongetscalled.An
%unrecognizedpropertynameorinvalidvaluemakespropertyapplication
%stop.Allinputsarepassedtountitled3_OpeningFcnviavarargin.
%*SeeGUIOptionsonGUIDE'
sToolsmenu.Choose"
GUIallowsonlyone
%instancetorun(singleton)"
.
%Seealso:
GUIDE,GUIDATA,GUIHANDLES
%Edittheabovetexttomodifytheresponsetohelpuntitled3
%LastModifiedbyGUIDEv2.506-Jun-201313:
47:
23
%Begininitializationcode-DONOTEDIT
gui_Singleton=1;
gui_State=struct('
gui_Name'
mfilename,...
'
gui_Singleton'
gui_Singleton,...
gui_OpeningFcn'
@untitled3_OpeningFcn,...
gui_OutputFcn'
@untitled3_OutputFcn,...
gui_LayoutFcn'
[],...
gui_Callback'
[]);
ifnargin&
isstr(varargin{1})
gui_State.gui_Callback=str2func(varargin{1});
end
ifnargout
[varargout{1:
nargout}]=gui_mainfcn(gui_State,varargin{:
});
else
gui_mainfcn(gui_State,varargin{:
%Endinitializationcode-DONOTEDIT
%---Executesjustbeforeuntitled3ismadevisible.
functionuntitled3_OpeningFcn(hObject,eventdata,handles,varargin)
%Thisfunctionhasnooutputargs,seeOutputFcn.
%hObjecthandletofigure
%eventdatareserved-tobedefinedinafutureversionofMATLAB
%handlesstructurewithhandlesanduserdata(seeGUIDATA)
%varargincommandlineargumentstountitled3(seeVARARGIN)
%Choosedefaultcommandlineoutputforuntitled3
handles.output=hObject;
%Updatehandlesstructure
guidata(hObject,handles);
%UIWAITmakesuntitled3waitforuserresponse(seeUIRESUME)
%uiwait(handles.figure1);
%---Outputsfromthisfunctionarereturnedtothecommandline.
functionvarargout=untitled3_OutputFcn(hObject,eventdata,handles)
%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);
%Getdefaultcommandlineoutputfromhandlesstructure
varargout{1}=handles.output;
%---Executesonbuttonpressinradiobutton2.
functionradiobutton2_Callback(hObject,eventdata,handles)%radiobutton2是否绘制固定检波器的频率特性曲线
%hObjecthandletoradiobutton2(seeGCBO)
%Hint:
get(hObject,'
)returnstogglestateofradiobutton2
%---Executesduringobjectcreation,aftersettingallproperties.
functionlistbox1_CreateFcn(hObject,eventdata,handles)
%hObjecthandletolistbox1(seeGCBO)
%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled
listboxcontrolsusuallyhaveawhitebackgroundonWindows.
%SeeISPCandCOMPUTER.
ifispc
set(hObject,'
BackgroundColor'
white'
);
get(0,'
defaultUicontrolBackgroundColor'
));
%---Executesonselectionchangeinlistbox1.
functionlistbox1_Callback(hObject,eventdata,handles)%listbox1检波器个数
%Hints:
contents=get(hObject,'
String'
)returnslistbox1contentsascellarray
%contents{get(hObject,'
)}returnsselecteditemfromlistbox1
functionlistbox2_CreateFcn(hObject,eventdata,handles)%listbox2时差列表
%hObjecthandletolistbox2(seeGCBO)
set(hObje