亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? duptops.m

?? 地震解釋處理matlab工具箱
?? M
字號:
function [ret1,ret2]=duptops(arg1,arg2,arg3)

% duptops(tops,topnames,transfer) will initiate the dialog
% [tops,topnames]=duptops('fini') returns the culled tops
%
% NOTE: It is illegal for you to use this software for a purpose other
% than non-profit education or research UNLESS you are employed by a CREWES
% Project sponsor. By using this software, you are agreeing to the terms
% detailed in this software's Matlab source file.
 
% BEGIN TERMS OF USE LICENSE
%
% This SOFTWARE is maintained by the CREWES Project at the Department
% of Geology and Geophysics of the University of Calgary, Calgary,
% Alberta, Canada.  The copyright and ownership is jointly held by 
% its author (identified above) and the CREWES Project.  The CREWES 
% project may be contacted via email at:  crewesinfo@crewes.org
% 
% The term 'SOFTWARE' refers to the Matlab source code, translations to
% any other computer language, or object code
%
% Terms of use of this SOFTWARE
%
% 1) Use of this SOFTWARE by any for-profit commercial organization is
%    expressly forbidden unless said organization is a CREWES Project
%    Sponsor.
%
% 2) A CREWES Project sponsor may use this SOFTWARE under the terms of the 
%    CREWES Project Sponsorship agreement.
%
% 3) A student or employee of a non-profit educational institution may 
%    use this SOFTWARE subject to the following terms and conditions:
%    - this SOFTWARE is for teaching or research purposes only.
%    - this SOFTWARE may be distributed to other students or researchers 
%      provided that these license terms are included.
%    - reselling the SOFTWARE, or including it or any portion of it, in any
%      software that will be resold is expressly forbidden.
%    - transfering the SOFTWARE in any form to a commercial firm or any 
%      other for-profit organization is expressly forbidden.
%
% END TERMS OF USE LICENSE
 

if(~isstr(arg1))
	action='init';
	tops=arg1;
	topnames=arg2;
	transfer=arg3;
	arg1=[];
	arg2=[];
else
	action=arg1;
end

if(strcmp(action,'init'))
 %search for duplicate tops
 [tops,ind]=sort(tops);
 ntops=length(tops);
 topnames=topnames(ind,:);
 dtops=diff(tops);
 ind=find(dtops==0.0);
 ndup=0;
 ret1=1;
 if( isempty(ind) )
  	 ind=0;
	 ret1=-1;
	 return;
 end
 %let idup be the index of the starting element of each set of dups
 %let ndup be the number of duplicates in each set
 %idup=[];
 %ndup=[];
 idup=ind;
 ndup=zeros(size(ind));
 ikill=ndup;
 ireal=1;
 ikeep=ones(size(tops));
	
	for k=1:length(ind)
		test=tops-tops(ind(k));
		itest=find(test==0);
		ndup(k)=length(itest);
		%test to see if we've already counted this one
		if(k>1)
			if(idup(k)<=idup(ireal)+ndup(ireal)-1)
				ikill(k)=1;
			else
				%ireal=ireal+1;
				ireal=k;
				ik=zeros(1,ndup(k));
				ik(1)=1;
				ikeep(idup(k):idup(k)+ndup(k)-1)=ik;
			end
		else
			ik=zeros(1,ndup(k));
			ik(1)=1;
			ikeep(idup(k):idup(k)+ndup(k)-1)=ik;
		end
	end
	if( ikill > 0 )
		idup(ikill)=[];
		ndup(ikill)=[];
	end

	
	hfig=figure('visible','off');

	pos=get(hfig,'position');
	figwid=400;
	fight=100;
	set(hfig,'position',[pos(1:2) figwid fight],'visible','on');

	%done and cancel buttons
	sep=.01;
	xnow=.01;
	ynow=.01;
	width=.15;
	height=.2;

	hdone=uicontrol('style','pushbutton','string','Done',...
		'units','normalized','position',[xnow ynow width height],...
		'callback','duptops(''done'')','foregroundcolor','r',...
		'userdata',ikeep);

	xnow=xnow+width+sep;
	hcancel=uicontrol('style','pushbutton','string','Cancel',...
		'units','normalized','position',[xnow ynow width height],...
		'callback','duptops(''cancel'')','userdata',transfer);

	msg1='On the left are depths which have duplicate tops.';
	msg2='For each depth select the ONE top to keep on the right.';

 xnow=sep;
 ynow=ynow+5*sep+height;
 height=1*height;
 width=1-2*sep;
	hmsg2=uicontrol('style','text','string',msg2,'max',1,...
		'units','normalized','position',[xnow ynow width height],...
		'userdata',ndup);
 ynow=ynow+height;
	hmsg1=uicontrol('style','text','string',msg1,'max',1,...
		'units','normalized','position',[xnow ynow width height],...
		'userdata',idup);

	ynow=ynow+height+5*sep;
	xnow=2*sep;
	width=.5-3*sep;

	%lbl=[];
	lbl=setstr(32*ones(length(idup),20));
	for k=1:length(idup)
		%lbl=strmat(lbl,num2str(tops(idup(k))));
		tmp=sprintf('%6.4f',tops(idup(k)));
		lbl(k,1:length(tmp))=tmp;
	end

	htops=uicontrol('style','popupmenu','string',lbl,...
		'units','normalized','position',[xnow ynow width height],...
		'callback','duptops(''chgz'')','backgroundcolor','c',...
		'userdata',tops);

	xnow=xnow+width+2*sep;

	htopnames=uicontrol('style','popupmenu',...
		'string',topnames(idup(1):idup(1)+ndup(1)-1,:),...
		'units','normalized','position',[xnow ynow width height],...
		'callback','duptops(''choose'')','backgroundcolor','c',...
		'userdata',topnames);

	set(hfig,'visible','on');
	set(hfig,'userdata',[hdone,hcancel,hmsg1,hmsg2,htops,htopnames]);
	%
	% userdata assignments
	% hdone ... ikeep
	% hcancel ... transfer function
	% hmsg1 ... idup
	% hmsg2 ... ndup
	% htops ... tops
	% htopnames ... topnames

 return;
end

if(strcmp(action,'chgz'))
	h=get(gcf,'userdata');
	hdone=h(1);
	hmsg1=h(3);
	hmsg2=h(4);
	htops=h(5);
	htopnames=h(6);

	ikeep=get(hdone,'userdata');
	idup=get(hmsg1,'userdata');
	ndup=get(hmsg2,'userdata');
	tops=get(htops,'userdata');
	topnames=get(htopnames,'userdata');

	%determine the new depth
	inew=get(htops,'value');
	znew=tops(idup(inew));

	%get the names for this depth
	names=topnames(idup(inew):idup(inew)+ndup(inew)-1,:);
	%determine which one is currently kept
	ikeepnow=find(ikeep(idup(inew):idup(inew)+ndup(inew)-1));

	%set the names
	set(htopnames,'string',names,'value',ikeepnow);

	return;
end

if(strcmp(action,'choose'))
	h=get(gcf,'userdata');
	hdone=h(1);
	hmsg1=h(3);
	hmsg2=h(4);
	htops=h(5);
	htopnames=h(6);

	ikeep=get(hdone,'userdata');
	idup=get(hmsg1,'userdata');
	ndup=get(hmsg2,'userdata');
	tops=get(htops,'userdata');
	topnames=get(htopnames,'userdata');

	%get the value 
	ikeepnew=get(htopnames,'value');

	%save it in ikeep
	itop=get(htops,'value');
	temp=zeros(1,ndup(itop));
	temp(ikeepnew)=1;
	ikeep(idup(itop):idup(itop)+ndup(itop)-1)=temp;

	set(hdone,'userdata',ikeep);

	return;
end

%process the done button
if(strcmp(action,'done'))
	h=get(gcf,'userdata');
	hcancel=h(2);
	transfer=get(hcancel,'userdata');

	%call the transfer function
	eval(transfer);

	return;
end

%process the cancel button

if(strcmp(action,'cancel'))
	h=get(gcf,'userdata');
	hdone=h(1);
	hcancel=h(2);
	transfer=get(hcancel,'userdata');

	%set the cancel flag
	set(hdone,'userdata',-1);

	%call the transfer function
	eval(transfer);

	return;
end

if(strcmp(action,'fini'))
	h=get(gcf,'userdata');
	hdone=h(1);
	hmsg1=h(3);
	hmsg2=h(4);
	htops=h(5);
	htopnames=h(6);

	ikeep=get(hdone,'userdata');
	idup=get(hmsg1,'userdata');
	ndup=get(hmsg2,'userdata');
	tops=get(htops,'userdata');
	topnames=get(htopnames,'userdata');

	%test for cancel
	if(ikeep==-1)
		ret1=-1;
		ret2=[];
	else
		%cull the tops and topnames
		ret1=tops(ikeep);
		ret2=topnames(ikeep,:);
	end

	close(gcf);

	return;
end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
6080午夜不卡| 亚洲自拍偷拍av| 亚洲午夜在线视频| 国产ts人妖一区二区| 欧美视频第二页| 国产精品久久久久影院亚瑟| 青青草成人在线观看| 色婷婷久久综合| 国产精品情趣视频| 国产在线精品一区二区夜色| 欧美日韩高清一区二区不卡 | 99久久久免费精品国产一区二区| 视频一区中文字幕| 不卡一区中文字幕| 国产亚洲欧美日韩在线一区| 五月激情综合婷婷| 在线观看91视频| 国产精品久久午夜夜伦鲁鲁| 国产综合久久久久影院| 日韩欧美一区二区视频| 亚洲妇熟xx妇色黄| 欧美性淫爽ww久久久久无| 综合激情网...| 9i在线看片成人免费| 欧美国产精品一区二区三区| 久久成人久久爱| 精品国产一区二区亚洲人成毛片| 国产日韩欧美精品电影三级在线| 国产午夜精品久久久久久免费视| 中文一区一区三区高中清不卡| 国产精品剧情在线亚洲| 国产丶欧美丶日本不卡视频| 91精品国模一区二区三区| 天天操天天综合网| 欧美色爱综合网| 天天色综合天天| 欧美一区二区三区视频免费 | 日本美女一区二区| 91国偷自产一区二区开放时间 | 亚洲一本大道在线| 日本高清成人免费播放| 亚洲精品伦理在线| 欧美性xxxxxxxx| 蜜臀av一区二区三区| 精品伦理精品一区| 激情综合亚洲精品| 国产精品污www在线观看| 成人激情动漫在线观看| 亚洲精品国产成人久久av盗摄 | 精品裸体舞一区二区三区| 国精品**一区二区三区在线蜜桃| av亚洲精华国产精华精| 亚洲精品日韩一| 制服丝袜av成人在线看| 久久狠狠亚洲综合| 国产精品对白交换视频| 在线亚洲高清视频| 美女视频第一区二区三区免费观看网站 | 国产在线一区二区| 久久久久久免费网| 91久久免费观看| 五月天视频一区| 国产日韩欧美综合在线| 日本道免费精品一区二区三区| 国产精品午夜在线观看| 欧美在线观看18| 激情综合一区二区三区| 亚洲精品免费在线观看| 精品少妇一区二区| 色综合久久久久网| 极品少妇一区二区三区精品视频| 色一区在线观看| 加勒比av一区二区| 亚洲一区二区三区自拍| 日韩一区二区免费视频| 99精品视频在线播放观看| 日本视频一区二区三区| 亚洲图片激情小说| 精品日本一线二线三线不卡| 欧洲精品一区二区| 国产成人午夜高潮毛片| 午夜国产精品影院在线观看| 国产精品久久久久久久久动漫 | 青青国产91久久久久久| 国产精品国产精品国产专区不蜜| 国产尤物一区二区在线| 亚洲精品成人a在线观看| 国产亚洲精品aa| 91麻豆精品国产自产在线| 不卡一区二区三区四区| 精品一区二区精品| 亚洲成人在线免费| 亚洲精品中文在线| 亚洲国产精品成人综合| 久久综合五月天婷婷伊人| 欧美美女一区二区三区| 在线观看av不卡| 99久久婷婷国产综合精品电影| 亚洲一区视频在线| 欧美国产日本视频| 久久精品视频一区二区三区| 91精品一区二区三区在线观看| 日本三级韩国三级欧美三级| 一区二区三区在线观看欧美| 中文字幕二三区不卡| 久久久国产综合精品女国产盗摄| 高清视频一区二区| 麻豆91在线看| 蜜臀久久久久久久| 免费欧美日韩国产三级电影| 午夜精品一区在线观看| 亚洲国产视频a| 亚洲成人高清在线| 日韩高清电影一区| 日韩在线一区二区| 日本女优在线视频一区二区| 热久久免费视频| 精品一区二区三区在线播放| 麻豆精品视频在线| 国产乱码精品一区二区三区av | 日欧美一区二区| 首页国产欧美日韩丝袜| 亚洲成人黄色影院| 亚洲超碰精品一区二区| 视频一区视频二区在线观看| 偷拍一区二区三区| 裸体健美xxxx欧美裸体表演| 久久国产精品第一页| 国产一区二区调教| 国产成人精品影视| 日本精品一区二区三区高清 | av福利精品导航| 99精品偷自拍| 欧美色综合天天久久综合精品| 国内精品伊人久久久久av影院| 亚洲欧美激情小说另类| 亚洲在线视频一区| 免费一级欧美片在线观看| 国产精品自拍毛片| 91丨九色丨国产丨porny| 91在线观看美女| 91精品国产综合久久久蜜臀粉嫩| 91女人视频在线观看| 91年精品国产| 欧美一级一区二区| 国产精品美女久久久久久| 亚洲一区二区三区视频在线| 狠狠色丁香久久婷婷综| 91视视频在线观看入口直接观看www | 在线免费观看成人短视频| 欧美精品国产精品| 久久久精品蜜桃| 一区二区三区在线高清| 久久精品噜噜噜成人av农村| 国产麻豆视频一区| 色成年激情久久综合| 日韩精品中午字幕| 亚洲日本中文字幕区| 麻豆高清免费国产一区| bt欧美亚洲午夜电影天堂| 欧美一区二区三区白人| 中文字幕精品在线不卡| 日韩av高清在线观看| 97精品国产露脸对白| 日韩欧美国产一区在线观看| 亚洲欧洲精品一区二区三区| 日本v片在线高清不卡在线观看| 亚洲成人黄色小说| 成人教育av在线| 26uuu国产在线精品一区二区| 欧美一区二区三区啪啪| 中文字幕精品在线不卡| 日韩av电影免费观看高清完整版在线观看| 亚洲一区二区偷拍精品| 国产精品香蕉一区二区三区| 91精品国产入口在线| 亚洲日本丝袜连裤袜办公室| 午夜成人免费视频| 91美女片黄在线观看91美女| 日本一区二区三区国色天香| 美女视频黄久久| 欧美一三区三区四区免费在线看| 欧美一级高清片| 午夜精品一区二区三区电影天堂 | 欧美在线观看一二区| 国产精品少妇自拍| 国产一区不卡在线| 精品久久久久久久久久久久包黑料| 欧美成人激情免费网| 天涯成人国产亚洲精品一区av| 日韩不卡免费视频| 在线播放日韩导航| 一个色在线综合| 色8久久精品久久久久久蜜| 中文字幕一区二区三区不卡在线 | 欧美老年两性高潮| 亚洲一卡二卡三卡四卡无卡久久| 香蕉影视欧美成人| 91论坛在线播放| 亚洲男人天堂av|