📄 variogram3dfig.m
字号:
'Style','radio');
hdl.vario.enable2d3d = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',dark_grey, ...
'Callback','radio_action(2,6)', ...
'FontSize',8, ...
'FontWeight','bold', ...
'ForegroundColor',[0 0 1], ...
'Position',[xb+Lx+0.01+2*dx y01+dy Lx+0.02 Ly+0.01], ...
'String','Anisotropy', ...
'Style','radio');
hdl.vario.ang_azm_2d3d = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'Callback','radio_action(2,7)', ...
'FontSize',9, ...
'FontWeight','bold', ...
'Position',[x01+Lvarstr2+dx y01+dy-0.02 Lx Ly+0.01], ...
'String','Azimuth', ...
'Enable','off',...
'Value',1, ...
'Style','radio');
hdl.vario.ang_dip_2d3d = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'Callback','radio_action(2,8)', ...
'FontSize',9, ...
'FontWeight','bold', ...
'Position',[x01+Lvarstr2+Lx+2*dx y01+dy-0.02 Lx Ly+0.01], ...
'String','Dip', ...
'Value',0, ...
'Enable','off',...
'Style','radio');
%% begin angle (orientation)
hdl.vario.angle0_txt = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'FontSize',9, ...
'FontWeight','bold', ...
'Position',[x01 y01 Lvarstr2 Ly], ...
'String','Begin Angle(deg)', ...
'Style','text');
%% azimuthal begin angle
hdl.vario.ang_beg_azm = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[x01+Lvarstr2+dx y01 Lx Ly], ...
'String','0', ...
'Style','edit');
%% dip begin angle
hdl.vario.ang_beg_dip = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[x01+Lvarstr2+Lx+2*dx y01 Lx Ly], ...
'String','-90', ...
'Style','edit');
%% end angle (orientation)
hdl.vario.angle1_txt = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'FontWeight','bold', ...
'Position',[x01 y01-0.8*dy Lvarstr2 Ly], ...
'String','End Angle(deg)', ...
'Style','text');
%% azimuthal end angle
hdl.vario.ang_end_azm = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[x01+Lvarstr2+dx y01-0.8*dy Lx Ly], ...
'String','180', ...
'Style','edit');
%% dip end angle
hdl.vario.ang_end_dip = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[x01+Lvarstr2+Lx+2*dx y01-0.8*dy Lx Ly], ...
'String','90', ...
'Style','edit');
%% angle resolution
hdl.vario.ang_res_txt = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'FontSize',9, ...
'FontWeight','bold', ...
'Position',[x01 y01-1.6*dy Lvarstr2 Ly], ...
'String','Angle Inc. (deg)', ...
'Style','text');
% azimuthal direction
hdl.vario.ang_res_azm = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',dark_grey, ...
'Position',[x01+Lvarstr2+dx y01-1.6*dy Lx Ly], ...
'String','10', ...
'Enable','off', ...
'Style','edit');
% dip direction
hdl.vario.ang_res_dip = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',dark_grey, ...
'Position',[x01+Lvarstr2+Lx+2*dx y01-1.6*dy Lx Ly], ...
'String','10', ...
'Enable','off', ...
'Style','edit');
%% angle width
hdl.vario.wd_txt = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'FontSize',9, ...
'FontWeight','bold', ...
'Position',[x01 y01-2.4*dy Lvarstr2 Ly], ...
'String','Tolerance ', ...
'Style','text');
% azimuthal direction
hdl.vario.ang_wd_azm = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[x01+Lvarstr2+dx y01-2.4*dy Lx Ly], ...
'String','20', ...
'Style','edit');
% dip direction
hdl.vario.ang_wd_dip = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[x01+Lvarstr2+Lx+2*dx y01-2.4*dy Lx Ly], ...
'String','20', ...
'Style','edit');
%% angle rotation
y01=y01-0.8*dy;
hdl.vario.ang_rot_txt = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'FontSize',9, ...
'FontWeight','bold', ...
'Position',[x01 y01-2.4*dy Lvarstr2 Ly], ...
'String','Rotation (deg)', ...
'Style','text');
% azimuthal direction
hdl.vario.ang_rot_azm = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[x01+Lvarstr2+dx y01-2.4*dy Lx Ly], ...
'String','0', ...
'Style','edit');
% dip direction
hdl.vario.ang_rot_dip = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[x01+Lvarstr2+Lx+2*dx y01-2.4*dy Lx Ly], ...
'String','0', ...
'Style','edit');
%% aspect ratios
xb=0.52;yb=0.15;xf=0.2;yf=0.2;
x01=xb+0.01;y01=yb+yf-2*dy;
Lx=0.06;Lvarstr3=0.06;
h1 = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'Position',[xb yb xf yf], ...
'Style','frame');
hdl.vario.ratio_txt = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'FontSize',9, ...
'FontWeight','bold', ...
'Position',[x01+Lvarstr3+dx y01+dy-0.02 Lx Ly+0.01], ...
'String','Ratio', ...
'Style','Text');
hdl.vario.ratio_yx_txt = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'FontSize',9, ...
'FontWeight','bold', ...
'Position',[x01 y01 Lvarstr3 Ly], ...
'String','Y/X','style','text');
hdl.vario.ratio_zx_txt = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'FontSize',9, ...
'FontWeight','bold', ...
'Position',[x01 y01-dy Lvarstr3 Ly], ...
'String','Z/X','style','text');
hdl.vario.ytox_ratio = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[x01+Lvarstr3+dx y01 Lx Ly], ...
'String','1', ...
'Style','edit');
hdl.vario.ztox_ratio = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[x01+Lvarstr3+dx y01-dy Lx Ly], ...
'String','1', ...
'Style','edit');
%%% push button action
xb=0.8;yb=0.15;xf=0.15;yf=0.2;
x01=xb+Ly+2*dx;y01=yb+yf-0.75*dy;Lbutton=0.1;
Lz=0.028;
h2 = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'BackgroundColor',grey, ...
'Position',[xb yb xf yf], ...
'Style','frame', ...
'Tag','FrameAction');
%% compute button
h1 = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'Callback','variogram_proc', ...
'FontSize',10, ...
'FontWeight','bold', ...
'Position',[x01 y01 Lbutton Lz], ...
'String','Compute', ...
'Tag','Pushbutton2');
%% LSQ fit button
if para.optim == 0
optim_str='off';
else
optim_str='on';
end
%% LSQ fit button
hdl.vario.lsq_fit= uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'Callback','lsqfit', ...
'FontSize',10, ...
'FontWeight','bold', ...
'Position',[x01 y01-dy Lbutton Lz], ...
'String','LSQ Fit', ...
'Enable',optim_str, ...
'Tag','lsqfit');
%% default button
h1 = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'Callback','getdefault3dvariopara(2)', ...
'FontSize',10, ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[x01 y01-2*dy Lbutton Lz], ...
'String','Default', ...
'Tag','Default');
%% Apply button
h1 = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'Callback','variogram_theo(1)', ...
'FontSize',10, ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[x01 y01-3*dy Lbutton Lz], ...
'String','Apply', ...
'Tag','manualfig');
%% other push buttons
h1 = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'Callback','figure(hdl.navigator.h0)', ...
'FontSize',10, ...
'FontWeight','bold', ...
'Position',[0.68 0.08 0.12 0.05], ...
'String','Navigator', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',hdl.vario.h0, ...
'Units','normalized', ...
'Callback','close_window(2)', ...
'FontSize',10, ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[0.82 0.08 0.10 0.05], ...
'String','Quit', ...
'Tag','Pushbutton1');
hdl.vario.status=1;
getdefault3dvariopara(1); % start a new window
set3dvariopara(0);
para.status.variogramfig=1;
hdl.status.variogramfig=1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -