⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 segymat.m

📁 matlab源程序
💻 M
📖 第 1 页 / 共 3 页
字号:
% --------------------------------------------------------------------function mHelp_Callback(hObject, eventdata, handles)% hObject    handle to mHelp (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function mHelpHelp_Callback(hObject, eventdata, handles)% hObject    handle to mHelpHelp (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)SegymatHelp('index')% --------------------------------------------------------------------function mHelpAbout_Callback(hObject, eventdata, handles)% hObject    handle to mHelpAbout (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)segymat_about;% --- Executes on button press in pbGainUp.function pbGainUp_Callback(hObject, eventdata, handles)% hObject    handle to pbGainUp (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)  data=guidata(hObject);  data.PlotPref.caxis=data.PlotPref.caxis./(1.2);  guidata(hObject,data);  UpdateGain(hObject, eventdata, handles) ;	Style=get(handles.popStyle,'Value'); % GET PLOTTING STYLE  if ((Style==2)|(Style==4|(Style==3)|(Style==5)))		UpdateMainPlot(hObject, eventdata, handles)		end	% --- Executes on button press in pbGainDown.function pbGainDown_Callback(hObject, eventdata, handles)% hObject    handle to pbGainDown (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)  data=guidata(hObject);  data.PlotPref.caxis=data.PlotPref.caxis.*(1.2);  guidata(hObject,data);  UpdateGain(hObject, eventdata, handles) ;  	Style=get(handles.popStyle,'Value'); % GET PLOTTING STYLE  if ((Style==2)|(Style==4|(Style==3)|(Style==5)))		UpdateMainPlot(hObject, eventdata, handles)		end% --- Executes during object creation, after setting all properties.function eGainMin_CreateFcn(hObject, eventdata, handles)% hObject    handle to eGainMin (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 eGainMin_Callback(hObject, eventdata, handles)% hObject    handle to eGainMin (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 eGainMin as text%        str2double(get(hObject,'String')) returns contents of eGainMin as a doubledata=guidata(hObject);data.PlotPref.caxis(1)=str2double(get(hObject,'String'));guidata(hObject,data);UpdateGain(hObject, eventdata, handles);% --- Executes during object creation, after setting all properties.function eGainMax_CreateFcn(hObject, eventdata, handles)% hObject    handle to eGainMax (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 eGainMax_Callback(hObject, eventdata, handles)% hObject    handle to eGainMax (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 eGainMax as text%        str2double(get(hObject,'String')) returns contents of eGainMax as a doubledata=guidata(hObject);data.PlotPref.caxis(2)=str2double(get(hObject,'String'));guidata(hObject,data);UpdateGain(hObject, eventdata, handles);% --- Executes during object creation, after setting all properties.function popTop_CreateFcn(hObject, eventdata, handles)% hObject    handle to popTop (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu 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'));end% --- Executes on selection change in popTop.function popTop_Callback(hObject, eventdata, handles)% hObject    handle to popTop (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns popTop contents as cell array%        contents{get(hObject,'Value')} returns selected item from popTop  SegymatVerbose(['GUI : Update popTOP'],20)  UpdateTopPlot(hObject, eventdata, handles)% --- Executes during object creation, after setting all properties.function popBot_CreateFcn(hObject, eventdata, handles)% hObject    handle to popBot (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu 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'));end% --- Executes on selection change in popBot.function popBot_Callback(hObject, eventdata, handles)% hObject    handle to popBot (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns popBot contents as cell array%        contents{get(hObject,'Value')} returns selected item from popBot  SegymatVerbose(['GUI : Update popBOT'],20)  UpdateBotPlot(hObject, eventdata, handles)% --- Executes during object creation, after setting all properties.function popColormap_CreateFcn(hObject, eventdata, handles)% hObject    handle to popColormap (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu 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'));end% --- Executes on selection change in popColormap.function popColormap_Callback(hObject, eventdata, handles)% hObject    handle to popColormap (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns popColormap contents as cell array%        contents{get(hObject,'Value')} returns selected item from popColormap  SegymatVerbose(['GUI : Update popColormap'],20)  data=guidata(hObject);  cmap=get(hObject,'String');  icmap=get(hObject,'value');  axes(handles.axMain);  colormap(cmap{icmap});  %%% zoom on;  % --- Executes during object creation, after setting all properties.function popStyle_CreateFcn(hObject, eventdata, handles)% hObject    handle to popStyle (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu 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'));end% --- Executes on selection change in popStyle.function popStyle_Callback(hObject, eventdata, handles)% hObject    handle to popStyle (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns popStyle contents as cell array%        contents{get(hObject,'Value')} returns selected item from popStyle  SegymatVerbose(['GUI : popStyle'],20)  UpdateMainPlot(hObject, eventdata, handles);  UpdateTopPlot(hObject, eventdata, handles)  UpdateBotPlot(hObject, eventdata, handles)%% MENUS%% --------------------------------------------------------------------function UpdateMenus(hObject, eventdata, handles)  SegymatVerbose(['GUI : Update Menus'],20)	data=guidata(hObject);		if isfield(data,'SegyData')==0		set(handles.mEdit,'Visible','Off')	else		set(handles.mEdit,'Visible','On')	end	% --------------------------------------------------------------------function mFile_Callback(hObject, eventdata, handles)% hObject    handle to mFile (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function mEdit_Callback(hObject, eventdata, handles)% hObject    handle to mEdit (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function mEditSH_Callback(hObject, eventdata, handles)% hObject    handle to mEditSH (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)data=guidata(hObject);try	data.SegyHeader=GUIEditSegyHeader(data.SegyHeader);	guidata(hObject,data)catchend% --------------------------------------------------------------------function mEditSTH_Callback(hObject, eventdata, handles)% hObject    handle to mEditSTH (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)data=guidata(hObject);try	data.SegyTraceHeaders=GUIEditSegyTraceHeader(data.SegyTraceHeaders);	guidata(hObject,data)	UpdateTopPlot(hObject, eventdata, handles)	UpdateBotPlot(hObject, eventdata, handles)catch  SegymatVerbose('Something Went wrong calling GUISegyMat')end% --------------------------------------------------------------------function mPlotXY_Callback(hObject, eventdata, handles)% hObject    handle to mPlotXY (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)data=guidata(hObject);try	GUIPlotXY(data.SegyTraceHeaders);catch  SegymatVerbose('Something Went wrong calling GUISegyMat')end% --------------------------------------------------------------------function mplot_Callback(hObject, eventdata, handles)% hObject    handle to mplot (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -