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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? wtva.m

?? 地震解釋處理matlab工具箱
?? M
字號(hào):
function [h,hva]=wtva(s,t,kolor,snot,polarity,dir,resampfact)

% [h,hva]=wtva(s,t,kolor,snot,polarity,dir,resampfact)
% hs=wtva(s,t,kolor,snot,polarity,dir,resampfact)
% wtva ... with no input arguments for a demo plot
%
% WTVA draws a vector using wiggle trace variable area display. The
% vector is drawn by calling LINE and the variable area shading is
% done with a call to PATCH. This results in 2 handles for the resultant
% display, one for the line and the other for the va. WTVA draws only
% one vector at a time. Plots of multiple traces should be done with
% a loop calling WTVA separately for each trace.
% If two return arguments are specified, then the first is the handle
% of the wiggle trace and the second is the va. If only one is 
% specified then it is returned as a two element vector.
% NOTE: In order to accurately create the variable area display, additional
% 	samples must be inserted in the trace precisly at the "zero crossings".
%	This means that if you use the trace's handle to get its samples (e.g.
%	samples=get(h,'ydata') ) that you will get something different from
%	your input trace.
%
% s = the vector to be plotted
% t = the sample 'times' for s. s and t must be the same size
% kolor = the color to be used for the display. Any MATLAB color spec will
%		work here such as 'g' or 'green' or [0 1 0]. See Matlab reference manual
%		under ColorSpec for more information.
% ************ default = 'g' ************
% snot = amplitude value which determines the shading. That is, with polarity
%		of 1, all s>snot will have va shading
% ************ default = mean of the live samples of s *************
% polarity determines whether peaks or troughs are shaded 
% polarity = +1 shade peaks (s>snot)
% polarity = -1 shade troughs (s<snot)
% ************** default: polarity =1 **************
% dir=1 ... vertical plot ( line(s,t) is called )
% dir=-1 ... horizontal plot ( line(t,s) is called )
% ************** default = 1 *********************
% resampfact ... resampling factor for a smoother, but slower, plot
%   Must be a positive integer. 
% ************** default = 4 *******************
%
% G.F. Margrave, April 1994
%        revised June 1995, Oct 1995
% The CREWES Project
%
% 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(nargin == 0)
	% do a demo
		%Make a fake reflectivity
		t=0:.002:2.0;
		r=randn(size(t)).^5;
		%make a ricker wavelet
		tw=-.1:.002:.1;
		arg=(pi*15*tw).^2;
		w=(1-2.*arg).*exp(-arg);
		%convolve
		s=conv(r,w);
		s=s(51:length(t)+50);
		s=s/max(s); %normalize
		%open up a figure
		figure
	end
	if(nargin<7)
		resampfact=4;
	end
	if(nargin<6)
		dir=1;
	end
	
	if(nargin<5)
		polarity=1;
	end

	if(nargin<4)
		ilive=find(~isnan(s));
		snot=mean(s(ilive));
	end
	
	if(nargin<3)
		kolor='g';
	end
	
	if(abs(polarity)~=1)
		error('invalid polarity value');
	end
	
	%find the parts to shade
	% Method:
	%		1) Find all points not to be shaded
	%		2) find the boundary points of the groups of 1). That is
	%			determine how the points fall into contiguous groups and
	%			where these groups start and end
	%		3) Find any groups of 1) which are single isolated points and
	%			add an extra point so that the minimum group size is 2
	%		4) For all groups, interpolate in the zero crossings at the 
	%			beginning and end of the group and assign the first and
	%			last points in the group to these values
	%		5) assign all other points in the group to the value 0 (or snot)
	%		6) plot the polygon using patch with no edgecolor
	%

	%test for dead trace
	test=sum(abs(s-snot));
	if(test>1000*eps)
		% resample
		if(resampfact>1)
			% my resampling
			[s,t]=resamp(s,t,(t(2)-t(1))/resampfact,[t(1) t(length(t))],0);
			% SIgnal toolbox resampling
			%s=resample(s,resampfact,1);
			%tmax=t(1)+(length(s)-1)*(t(2)-t(1))/resampfact;
			%t=t(1):(t(2)-t(1))/resampfact:tmax;
		end
		
	
		dt=t(2)-t(1);
		ss=polarity*[snot;s(:);snot];
		snot=polarity*snot;
		n=length(ss);
		tt=[t(1)-dt;t(:);t(length(t))+dt];
		% put snot on both ends. This forces the detection of isolated singular
		% points at the ends
		
		%find all points which won't be shaded
		il=find(ss<=snot);
		ilow=[0;il;n+1]; %end conditions
		%now find the beginning and ends of these zones
		ind=diff(ilow);
		ibdy=find(ind>1);
		% find singular groups
		ind=find(diff(ibdy)==1);
		ising=ilow(ibdy(ind)+1);
		if(~isempty(ising))
			if(ising(1)==0)
				ising(1)=[];
			end
			if(ising(length(ising))==n+1)
				ising(length(ising))=[];
			end
			if(~isempty(ising))
				for k=1:length(ising)
					%duplicate singular points
					ss=[ss(1:ising(k)); ss(ising(k)); ss(ising(k)+1:length(ss))];
					tt=[tt(1:ising(k)); tt(ising(k)); tt(ising(k)+1:length(tt))];
					ising=ising+1;
				end
			end
			% refind the points because the point count may have changed
			%find all points which won't be shaded
			il=find(ss<=snot);
			ilow=[0;il;n+1]; %end conditions
			%now find the beginning and ends of these zones
			ind=diff(ilow);
			ibdy=find(ind>1);
		end
					
		
		ibdy1=ilow(ibdy);
		ibdy2=ilow(ibdy+1);
		if(ibdy1(1)==0)
			ibdy1(1)=[];
		end
		if(ibdy1(length(ibdy1))==n+1)
			ibdy1(length(ibdy1))=[];
		end
		if(ibdy2(1)==0)
			ibdy2(1)=[];
		end
		if(ibdy2(length(ibdy2))==n+1)
			ibdy2(length(ibdy2))=[];
		end
		
		%interpolate in zero crossings at the beginnings
		tnot=(snot-ss(ibdy1))./(ss(ibdy1+1)-ss(ibdy1));
		tnot=tnot.*(tt(ibdy1+1)-tt(ibdy1))+tt(ibdy1);

		tt(ibdy1)=tnot;
		%interpolate in zero crossings at the ends
		tnot=(snot-ss(ibdy2))./(ss(ibdy2-1)-ss(ibdy2));
		tnot=tnot.*(tt(ibdy2-1)-tt(ibdy2))+tt(ibdy2);
		tt(ibdy2)=tnot;

		% set all troughs to snot
		ss(il)=snot*ones(size(il));
		
		% make sure we have snot on both ends
		ss=[snot;ss(2:length(ss)-1);snot];
		tt=[t(1);tt(2:length(tt)-1);t(length(t))];

	else
		ss=s;
		tt=t;
	end
	
	if(dir==1)
		hva=patch('xdata',polarity*ss,'ydata',tt,...
			'edgecolor','none','facecolor',kolor);
	else
		hva=patch('xdata',tt,'ydata',polarity*ss,...
		'edgecolor','none','facecolor',kolor);
	end

	%plot with line
	if(dir==1)
		h=line(s,t,'color',kolor);
	else
		h=line(t,s,'color',kolor);
	end

	if(nargout==1)
		h=[h hva];
		clear hva;
	end

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91天堂素人约啪| 国产一区二区三区高清播放| 波多野结衣精品在线| 国产三级精品在线| 丰满白嫩尤物一区二区| 国产精品麻豆视频| 欧美在线制服丝袜| 免费欧美日韩国产三级电影| 欧美成va人片在线观看| 国产91精品久久久久久久网曝门| 国产日韩精品一区二区三区| 国产成人在线免费观看| 亚洲欧美日韩一区二区三区在线观看 | 国产欧美日韩在线观看| 本田岬高潮一区二区三区| 1区2区3区精品视频| 欧美日韩一区二区三区不卡| 久久精品国产亚洲一区二区三区 | 国产乱码精品一区二区三区av| 欧美国产精品一区二区| 日本乱码高清不卡字幕| 蜜桃视频在线观看一区| 国产精品另类一区| 欧美日韩三级在线| 韩国v欧美v亚洲v日本v| 亚洲免费av高清| 日韩精品中文字幕一区二区三区 | 久久综合色鬼综合色| 本田岬高潮一区二区三区| 天天综合色天天| 国产精品午夜久久| 欧美麻豆精品久久久久久| 国产尤物一区二区| 亚洲第一会所有码转帖| 国产蜜臀97一区二区三区 | 一本一道波多野结衣一区二区| 舔着乳尖日韩一区| 国产精品理伦片| 日韩一区二区精品| 91理论电影在线观看| 国产精品 欧美精品| 91丨porny丨蝌蚪视频| 蜜桃一区二区三区在线| 玉米视频成人免费看| 久久精品视频免费| 日韩视频在线你懂得| 欧美怡红院视频| 成人免费毛片app| 久久超碰97中文字幕| 亚洲国产一区视频| 亚洲婷婷在线视频| 国产午夜一区二区三区| 日韩精品一区二| 欧美日韩精品一区二区三区蜜桃 | 色婷婷激情久久| 国产免费观看久久| 国产成人av一区二区三区在线观看| 国内精品视频一区二区三区八戒| 夜夜嗨av一区二区三区| 国产欧美日韩视频在线观看| 欧美mv日韩mv亚洲| 欧美老肥妇做.爰bbww视频| 97久久久精品综合88久久| 国内国产精品久久| 日韩av电影免费观看高清完整版 | 欧美日韩国产一级片| 99精品国产91久久久久久| 国产精品996| 国产一区高清在线| 久久电影网站中文字幕| 美女尤物国产一区| 日韩av电影一区| 日韩福利视频网| 三级久久三级久久| 日韩影院免费视频| 丝袜美腿高跟呻吟高潮一区| 五月天欧美精品| 婷婷久久综合九色国产成人 | 一区二区理论电影在线观看| 亚洲色欲色欲www| 综合分类小说区另类春色亚洲小说欧美| 久久蜜桃av一区二区天堂 | 国产精品乱人伦| 亚洲国产成人一区二区三区| 欧美国产激情一区二区三区蜜月| 久久亚洲一级片| 欧美国产一区视频在线观看| 26uuu亚洲| 国产亚洲精品中文字幕| 亚洲国产精品成人久久综合一区 | 一区在线中文字幕| 综合欧美一区二区三区| 亚洲男人的天堂在线aⅴ视频| 亚洲图片欧美色图| 男男gaygay亚洲| 国产麻豆精品视频| 成av人片一区二区| 一本大道综合伊人精品热热| 欧美亚洲一区三区| 91精品国产91综合久久蜜臀| 久久久久久久久久久黄色| 国产欧美精品一区aⅴ影院 | 亚洲成人精品影院| 蜜臀av在线播放一区二区三区| 美洲天堂一区二卡三卡四卡视频 | 一本到三区不卡视频| 欧美麻豆精品久久久久久| 精品电影一区二区三区| 中文字幕在线不卡一区二区三区| 亚洲一区电影777| 老色鬼精品视频在线观看播放| 高清在线不卡av| 国产一区二区美女诱惑| eeuss影院一区二区三区| 欧美色男人天堂| 久久在线免费观看| 亚洲美女少妇撒尿| 久久国产尿小便嘘嘘| 成人一区二区三区在线观看 | 成人一级片在线观看| 欧美性猛交xxxx乱大交退制版 | 免费观看日韩av| 成人激情视频网站| 欧美一二三四区在线| 国产精品久线在线观看| 婷婷久久综合九色综合绿巨人| 成人精品免费网站| 日韩三区在线观看| 一区二区三区在线视频免费 | gogo大胆日本视频一区| 日韩一区二区三区电影在线观看| 亚洲三级免费观看| 国产精品1区2区| 制服.丝袜.亚洲.另类.中文| 亚洲欧洲制服丝袜| 国产成人亚洲综合色影视| 91麻豆精品91久久久久同性| 亚洲人成网站精品片在线观看| 久久99精品网久久| 欧美三级视频在线| 亚洲欧洲精品成人久久奇米网| 麻豆免费看一区二区三区| 91传媒视频在线播放| 中文久久乱码一区二区| 韩国三级在线一区| 欧美一区二区三区日韩视频| 亚洲国产精品久久艾草纯爱| 91亚洲精品久久久蜜桃网站 | 欧美日韩精品一区二区| 国产精品天天看| 国产精品正在播放| 日韩女优电影在线观看| 日日夜夜精品视频免费| 欧美偷拍一区二区| 亚洲男女毛片无遮挡| www.亚洲精品| 亚洲国产成人在线| 成人性生交大片免费看中文| 久久久久久久久久电影| 狠狠狠色丁香婷婷综合久久五月| 88在线观看91蜜桃国自产| 一区二区三区视频在线观看| 成人av中文字幕| 国产精品免费观看视频| 波多野结衣亚洲一区| 综合激情成人伊人| 91在线你懂得| 亚洲欧洲综合另类| 在线精品观看国产| 无吗不卡中文字幕| 日韩欧美一区二区三区在线| 精品综合久久久久久8888| 久久一夜天堂av一区二区三区| 国产一区二区美女诱惑| 国产嫩草影院久久久久| av电影在线观看完整版一区二区| 中文字幕中文乱码欧美一区二区| 岛国一区二区三区| 亚洲婷婷在线视频| 欧美三级在线播放| 久久不见久久见免费视频1| 337p日本欧洲亚洲大胆精品| 成人手机在线视频| 亚洲男人天堂av| 555www色欧美视频| 经典三级视频一区| 国产午夜精品美女毛片视频| 成人av在线资源| 亚洲国产另类av| 日韩精品专区在线| 粉嫩av一区二区三区在线播放| 国产精品久久毛片av大全日韩| 91麻豆精品一区二区三区| 亚洲国产一区视频| 精品少妇一区二区三区在线播放 | 美腿丝袜一区二区三区| 国产性色一区二区| 色综合一区二区三区| 六月丁香婷婷色狠狠久久| 国产精品三级电影|