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

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

?? arrowh.m

?? Matlab System tools Mimo Tool Box
?? M
字號:
%  ARROWH   Draws a solid 2D arrow head in current plot.
%     ARROWH(X,Y,COLOR,SIZE,LOCATION) draws a solid arrow head into 
%     the current plot to indicate a direction.  X and Y must contain
%     a pair of x and y coordinates ([x1 x2],[y1 y2]) of two points:
%
%     The first point is only used to tell (in conjunction with the 
%     second one) the direction and orientation of the arrow -- it 
%     will point from the first towards the second.
%
%     The head of the arrow will be located in the second point.  An
%     example of use is    plot([0 2],[0 4]); ARROWH([0 1],[0 2],'b')
%
%     You may also give two vectors of same length > 2.  The routine
%     will then choose two consecutive points from "about" the middle
%     of each vectors.  Useful if you don't want to worry each time
%     about where to put the arrows on a trajectory.  If x1 and x2 
%     are the vectors x1(t) and x2(t), simply put   ARROWH(x1,x2,'r')  
%     to have the right direction indicated in your x2 = f(x1) phase 
%     plane.
%
%                       (x2,y2)
%                       --o
%                       \ |
%                        \|
%
%
%            o
%        (x1,y1)
%
%     Please note that the following optional arguments need -- if 
%     you want to use them -- to be given in that exact order. 
%
%     The COLOR argument is exactely the same as for plots, eg. 'r'; 
%     if not given, blue is default.
%
%     The SIZE argument allows you to tune the size of the arrows.
%
%     The LOCAITON argument only applies, if entire solution vectors 
%     have been passed on.  With this argument you can indicate where
%     abouts inside those vectors to take the two points from.
%     Can be a vector, if you want to have more than one arrow drawn.
%
%     Both arguments, SIZE and LOCATION must be given in percent, 
%     where 100 means standard size, 50 means half size, respectively 
%     100 means end of the vector, 48 means about middle, 0 beginning. 
%     Note that those "locations" correspond to the cardinal position 
%     "inside" the vector, say "index-wise".
%
%     This routine is mainely intended to be used for indicating 
%     "directions" on trajectories -- just give two consecutive times 
%     and the corresponding values of a flux and the proper direction 
%     of the trajectory will be shown on the plot.  You may also pass 
%     on two solution vectors, as described above.
%
%     Note, that the arrow only looks good on the specific axis 
%     settings when the routine was actually started.  If you zoom in 
%     afterwards, the triangle gets distorted.
%
%     Examples of use:
%     x1 = [0:.2:2]; x2 = [0:.2:2]; plot(x1,x2); hold on;
%     arrowh(x1,x2,'r',100,20);      % passing on entire vectors
%     arrowh([0 1],[0 1],'g',300);   % passing on 2 points

%     Author:       Florian Knorn
%     Email:        florian.knorn@student.uni-magdeburg.de
%     Version:      1.10
%     Filedate:     Dec 1st, 2005
%
%     History:      1.10 - Buxfix
%                   1.09 - Possibility to chose *several* locations
%                   1.08 - Possibility to chose location
%                   1.07 - Choice of color
%                   1.06 - Bug fixes
%                   1.00 - Release
%
%     ToDos:        - More specific shaping-possibilities, 
%                   - Keep proportions when zooming or resizing;
%                     has to be done with callback functions, I guess.
%
%     Bugs:         None discovered yet, those discovered were fixed
%
%     Thanks:       I haven't used the function in ages, but the 
%                   last time I modified something in a hurry, I 
%                   introduced a stupid bug, which Kesh Ikum was so
%                   kind to point out ;-) Thanks!
%
%     If you have suggestions for this program, if it doesn't work for
%     your "situation" or if you change something in it - please send 
%     me an email!  This is my very first "public" program and I'd like
%     to improve it where I can -- your help is kindely appreciated! 
%     Thank you!

function arrowh(x,y,clr,ArSize,Where)

%-- errors
if nargin < 2
	error('Please give enough coordinates !');
end
if (length(x) < 2) || (length(y) < 2),
	error('X and Y vectors must each have "length" >= 2 !');
end
if (x(1) == x(2)) && (y(1) == y(2)),
	error('Points superimposed - cannot determine direction !');
end
if nargin < 3
	clr = 'b';
end
if nargin < 4
	ArSize = 100 / 10000; %-- 10000 is an arbitrary value...
else 
	ArSize = ArSize / 10000;
end
if nargin < 5
	Where = 50;
end


%-- determine and remember the hold status, toggle if necessary
if ishold,
	WasHold = 1;
else
	WasHold = 0;
	hold on;
end

%-- start for-loop in case several arrows are wanted
for Loop = 1:length(Where),
	
	%-- if vectors "longer" then 2 are given we're dealing with time series
	if (length(x) == length(y)) && (length(x) > 2),
		j = floor(length(x)*Where(Loop)/100); %-- determine that location
		if j >= length(x), j = length(x) - 1; end
		if j == 0, j = 1; end
		x1 = x(j); x2 = x(j+1); y1 = y(j); y2 = y(j+1);
		
	else %-- just two points given - take those
		x1 = x(1); x2 = x(2); y1 = y(1); y2 = y(2);
	end
	
	
	%-- get axe ranges and their norm
	OriginalAxis = axis;
	Xextend = abs(OriginalAxis(2)-OriginalAxis(1));
	Yextend = abs(OriginalAxis(4)-OriginalAxis(3));
	
	%-- determine angle for the rotation of the triangle
	if x2 == x1, %-- line vertical, no need to calculate slope
		if y2 > y1,
			p = pi/2;
		else
			p= -pi/2;
		end
	else %-- line not vertical, go ahead and calculate slope
		%-- using normed differences (looks better like that)
		m = ( (y2 - y1)/Yextend ) / ( (x2 - x1)/Xextend );
		if x2 > x1, %-- now calculate the resulting angle
			p = atan(m);
		else
			p = atan(m) + pi;
		end
	end
	
	%-- the arrow is made of a transformed "template triangle".
	%-- it will be created, rotated, moved, resized and shifted.
	
	%-- the template triangle (it points "east", centered in (0,0)):
	xt = [1    -sin(pi/6)    -sin(pi/6)];
	yt = [0     cos(pi/6)    -cos(pi/6)];
	
	%-- rotate it by the angle determined above:
    xd=[];
    yd=[];
	for i=1:3,
		xd(i) = cos(p)*xt(i) - sin(p)*yt(i);
		yd(i) = sin(p)*xt(i) + cos(p)*yt(i);
	end
	
	%-- move the triangle so that its "head" lays in (0,0):
	xd = xd - cos(p);
	yd = yd - sin(p);
	
	%-- stretch/deform the triangle to look good on the current axes:
	xd = xd*Xextend*ArSize;
	yd = yd*Yextend*ArSize;
	
	%-- move the triangle to the location where it's needed
	xd = xd + x2;
	yd = yd + y2;
	
	%-- draw the actual triangle
	patch(xd,yd,clr,'EdgeColor',clr);
	
end % Loops

%-- restore original axe ranges and hold status
axis(OriginalAxis);
if ~WasHold,
	hold off
end

%-- work done. good bye.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本精品视频一区二区三区| 成人av网在线| 日韩欧美国产电影| 免费看日韩a级影片| 午夜亚洲国产au精品一区二区| 国产欧美在线观看一区| 69堂成人精品免费视频| 在线观看日韩国产| 99久久精品情趣| 国产一区二区三区免费观看| 美女被吸乳得到大胸91| 午夜在线成人av| 日韩一区欧美一区| 中文字幕av一区二区三区| 精品久久久久香蕉网| 欧美一级久久久| 欧美一区二区啪啪| 日韩一级片网址| 日韩欧美电影在线| 久久综合99re88久久爱| 欧美乱妇一区二区三区不卡视频| 国产a区久久久| 成人激情小说乱人伦| 成人动漫在线一区| 99国产精品久| 欧美日韩一本到| 欧美日韩午夜影院| 欧美一区午夜视频在线观看 | 欧美在线观看一区二区| 色综合久久久久| 欧美影片第一页| 欧美日韩激情在线| 91精品国产一区二区| 精品乱人伦一区二区三区| 久久久不卡影院| 欧美国产一区二区| 国产精品理论片| 中文字幕一区二区三区不卡| ...xxx性欧美| 亚洲国产一二三| 日本不卡中文字幕| 理论电影国产精品| 成人高清伦理免费影院在线观看| 一本色道久久综合精品竹菊| 欧美午夜免费电影| 日韩一区二区精品在线观看| 久久精品免费在线观看| 国产精品久久久久久久久晋中 | 亚洲精品一区二区在线观看| 国产精一品亚洲二区在线视频| 亚洲国产精品久久久久婷婷884| 午夜av一区二区| 久久福利视频一区二区| voyeur盗摄精品| 欧美浪妇xxxx高跟鞋交| 国产网站一区二区| 五月综合激情日本mⅴ| 国内外成人在线| 色成人在线视频| 欧美成va人片在线观看| 中文字幕一区二区三区乱码在线| 亚洲综合色噜噜狠狠| 精品夜夜嗨av一区二区三区| 91同城在线观看| 久久综合丝袜日本网| 亚洲国产视频a| 国产成人精品一区二| 欧美色网一区二区| 中文字幕免费观看一区| 日韩成人午夜电影| 在线欧美日韩精品| 精品久久久久久久久久久久久久久久久 | 七七婷婷婷婷精品国产| 97久久超碰国产精品| 亚洲精品一区二区三区99| 亚洲一区二区欧美| 国产91富婆露脸刺激对白| 欧美日韩午夜精品| 亚洲另类在线视频| av激情综合网| 日本一区二区视频在线观看| 日韩va欧美va亚洲va久久| 在线视频欧美精品| 亚洲欧洲中文日韩久久av乱码| 国产精品888| 5月丁香婷婷综合| 丝袜亚洲另类欧美| 精品污污网站免费看| 成人免费一区二区三区在线观看| 麻豆成人综合网| 91精品国产综合久久久久久久久久 | 国产中文一区二区三区| 欧美三级中文字| 国产精品不卡一区| 99久久久久久| 国产精品第13页| 99riav久久精品riav| 中文字幕一区二区三区在线播放| 国产成人aaa| 欧美国产欧美亚州国产日韩mv天天看完整| 久久99精品国产91久久来源| 777久久久精品| 日本不卡高清视频| 欧美大片一区二区| 激情综合网天天干| 国产欧美一区在线| 99久久伊人网影院| 一区二区三区中文字幕在线观看| 色婷婷久久久综合中文字幕| 中文字幕一区不卡| 日本乱人伦一区| 日精品一区二区三区| 欧美成人高清电影在线| 国产一区久久久| 国产精品欧美经典| 欧美午夜电影在线播放| 日本三级亚洲精品| 国产欧美一区二区精品婷婷| 国产91丝袜在线播放| 久久精品亚洲精品国产欧美| 成人国产一区二区三区精品| 一区二区三区中文在线观看| 欧美日韩中文另类| 国产一区二区三区av电影| 自拍偷拍亚洲综合| 日韩欧美的一区| 成人aa视频在线观看| 亚洲va国产va欧美va观看| 精品对白一区国产伦| 99国产精品久久久久久久久久久 | 欧美精品一区二区三区久久久| 丰满放荡岳乱妇91ww| 亚洲国产精品久久人人爱| 2021久久国产精品不只是精品| 国产精品羞羞答答xxdd| 亚洲成人免费av| 国产欧美一区二区精品仙草咪| 欧美午夜精品免费| 国产精品亚洲第一区在线暖暖韩国| 久久蜜桃香蕉精品一区二区三区| 顶级嫩模精品视频在线看| 亚洲成a天堂v人片| 国产精品美女久久久久久| 日韩欧美亚洲国产另类| 精品一区二区免费在线观看| 久久精品视频一区二区三区| 97久久精品人人做人人爽| 激情综合色综合久久综合| 亚洲曰韩产成在线| 国产精品热久久久久夜色精品三区| 欧美精品丝袜中出| 成人av网站在线观看免费| 精品亚洲免费视频| 视频一区二区国产| 国产精品每日更新| 欧美日韩免费在线视频| 国产成人在线观看| 激情av综合网| 精彩视频一区二区三区| 日韩电影在线一区| 亚洲影院在线观看| 亚洲精品午夜久久久| 国产精品毛片大码女人| 亚洲日本一区二区三区| 亚洲在线观看免费| 日日噜噜夜夜狠狠视频欧美人| 热久久久久久久| 国产激情偷乱视频一区二区三区 | 亚洲精品高清在线| 亚洲一二三四区不卡| 日本网站在线观看一区二区三区 | 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 国产精品毛片无遮挡高清| 亚洲精品亚洲人成人网在线播放| 亚洲国产一区二区视频| 蜜臀av性久久久久蜜臀aⅴ| 国产一区91精品张津瑜| 粉嫩在线一区二区三区视频| 91久久精品日日躁夜夜躁欧美| 欧美无砖专区一中文字| 精品国产一区二区三区久久久蜜月 | 欧美中文字幕一区| 欧美一二三四区在线| 久久九九国产精品| 亚洲国产欧美日韩另类综合 | 91热门视频在线观看| 欧美精品第1页| 欧美国产日产图区| 偷拍自拍另类欧美| 成人精品鲁一区一区二区| 欧洲精品在线观看| 久久久亚洲国产美女国产盗摄| 亚洲欧美成人一区二区三区| 青青草伊人久久| 91麻豆精品在线观看| 久久只精品国产| 日日嗨av一区二区三区四区| bt欧美亚洲午夜电影天堂| 精品精品国产高清a毛片牛牛| 亚洲人成亚洲人成在线观看图片|