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

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

?? mohuzishiyingkongzhi.txt

?? 模型自適應模糊控制源代碼
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
			 		   % last entry with a non-zero term
			end
		 end
		end
	end

% Next we will save the number of mfs that are on and the pointer
% e_int as to which rules were on.  This vector of length
% 10 saves the last 10 values of e_count and e_int as time
% progresses (hence, it is a moving window).
% These will be used by the FMRLC knowledge-base modifier.

meme_count=[e_count meme_count(1:9)];
meme_int=[e_int meme_int(1:9)];

% The following if-then structure fills the vector mfc with the
% certainty of each membership fucntion of c for the current
% value of c (to understand this part of the code see the above
% similar code for computing mfe)

	if c<=cc(1)	% Takes care of saturation of left-most mf
         mfc=[1 0 0 0 0 0 0 0 0 0 0];
	 c_count=c_count+1;
	 c_int=1;
	elseif c>=cc(numc)
				% Takes care of saturation of the right-most mf
	 mfc=[0 0 0 0 0 0 0 0 0 0 1];
	 c_count=c_count+1;
	 c_int=numc;
	else
		for i=1:numc
		 if c<=cc(i)
		  mfc(i)=max([0,1+(c-cc(i))/wc]);
			if mfc(i)~=0
			 c_count=c_count+1;
			 c_int=i;  	% This term holds last entry
			 			% with a non-zero term
			end
		 else
		  mfc(i)=max([0,1+(cc(i)-c)/wc]);
			if mfc(i)~=0
			 c_count=c_count+1;
			 c_int=i;	% This term holds last entry
			 			% with a non-zero term
			end
		 end
		end
	end
% Next we will save the number of mfs that are on and the pointer
% c_int as to which rules were on.  This vector of length 10
% saves the last 10 values of c_count and e_int as time progresses
% (hence, it is a moving window). These will be used by the FMRLC
% knowledge-base modifier.

memc_count=[c_count memc_count(1:9)];
memc_int=[c_int memc_int(1:9)];

% These for loops calculate the crisp output using only the non-
% zero premise of error,e, and change in error,c.  This cuts down
% computation time since we will only compute
% the contribution from the rules that are on (i.e., a maximum of
% four rules for our case).  Minimum is used for the premise
% and implication.

num=0;
den=0;
	for k=(e_int-e_count+1):e_int
						% Scan over e indices ofmfs that are on
		for l=(c_int-c_count+1):c_int
						% Scan over c indices ofmfs that are on
		  prem=min([mfe(k) mfc(l)]);
		  				% Value of premisemembership function
 % This next calculation of num adds up the numerator for the
 % defuzzification formula. fuzzyrules(k,l) is the output center
 % for the rule.base*(prem-(prem)^2/2 is the area of a symmetric
 % triangle with base width "base" and that is chopped off at
 % a height of prem (since we use minimum to represent the
 % implication). Computation of den is similar but without
 % fuzzyrules(k,l).
		  num=num+fuzzyrules(k,l)*base*(prem-(prem)^2/2);
		  den=den+base*(prem-(prem)^2/2);
		end
	end

   u(index)=num/den;
   			% Crisp output of fuzzy controller that is the input
   			% to the plant

% Next, we perform computations for the fuzzy inverse model.

ye=ym(index)-y(index);		% Calculates ye
yc=(ye-yeold)/step;			% Calculates yc
yeold=ye;					% Saves the value of ye for use the
							% next time

ye_count=0;,yc_count=0;    	% Counts the non-zero certainties
							% of ye and ycsimilar to how we did
							% for the fuzzycontroller

% The following if-then structure fills the vector mfye with the
% certainty of each membership fucntion of ye (similar to the
% fuzzy controller).  Notice that we use the same number of
% input membership functions as in the fuzzy controller -
% just for convenience - it does not have to be this way

	if ye<=cye(1)			% Takes care of saturation
         mfye=[1 0 0 0 0 0 0 0 0 0 0];
	 ye_count=ye_count+1;,ye_int=1;
	elseif ye>=cye(numye)	% Takes care of saturation
	 mfye=[0 0 0 0 0 0 0 0 0 0 1];
	 ye_count=ye_count+1;,ye_int=numye;
	else
		for i=1:numye
		 if ye<=cye(i)
		  mfye(i)=max([0 1+(ye-cye(i))/wye]);
			if mfye(i)~=0
			 ye_count=ye_count+1;
			 ye_int=i;	% This term holds last entry with
			 			% a non-zero term
			end
		 else
		  mfye(i)=max([0,1+(cye(i)-ye)/wye]);
			if mfye(i)~=0
			 ye_count=ye_count+1;
			 ye_int=i;	% This term holds last entry with
			 			% a non-zero term
			end
		 end
		end
	end

% The following if-then structure fills the vector mfyc with the
% certainty of each membership fucntion of yc

	if yc<=cyc(1)
         mfyc=[1 0 0 0 0 0 0 0 0 0 0];
	 yc_count=yc_count+1;,yc_int=1;
	elseif yc>=cyc(numyc)
	 mfyc=[0 0 0 0 0 0 0 0 0 0 1];
	 yc_count=yc_count+1;,yc_int=numyc;
	else
		for i=1:numyc
		 if yc<=cyc(i)
		  mfyc(i)=max([0 1+(yc-cyc(i))/wyc]);
			if mfyc(i)~=0
			 yc_count=yc_count+1;
			 yc_int=i;
			end
		 else
		  mfyc(i)=max([0,1+(cyc(i)-yc)/wyc]);
			if mfyc(i)~=0
			 yc_count=yc_count+1;
			 yc_int=i;
			end
		 end
		end
	end

% These for loops calculate the crisp output of the inverse model
% using only the non-zero premise of error,ye, and change in
% error,yc.  This cuts down computation time (similar to the
% fuzzy controller). Minimum is used for the premise and the
% implication.  To understand this part of the code see the
% similar code for the fuzzy controller.

invnum=0;
invden=0;
	for k=(ye_int-ye_count+1):ye_int
		for l=(yc_int-yc_count+1):yc_int
		  prem=min([mfye(k) mfyc(l)]);
		  invnum=invnum+inverrules(k,l)*invbase*(prem-(prem)^2/2);
		  invden=invden+invbase*(prem-(prem)^2/2);
		end
	end

% Next we compute the output of the fuzzy inverse model.
% If you want to let gp=0 to test the fuzzy controller by itself
% then you will have invden=0 and you will not be able to compute p.
% To make it possible to let gp=0 we put in the following
% if-then rule.

if gp==0
p=0;
else
p=invnum/invden;   			% Crisp output of inverse model
if abs(p)<.05, p=0; end     % robustification term

end

% Next we modify the centers of ouput membership functions
% associated with the rules that were on d steps ago
% The indexing sheme is similar to the one used in the
% computation of the outputs of the fuzzy controller and
% fuzzy inverse model.

	for k=(meme_int(d)-meme_count(d)+1):meme_int(d)
		for l=(memc_int(d)-memc_count(d)+1):memc_int(d)

		  fuzzyrules(k,l)=fuzzyrules(k,l)+p;
		end
	end

% Next, the Runge-Kutta equations to find the next state.

	time(index)=t;
	F=A*x+B*u(index);
	k1=step*F;
	xnew=x+k1/2;
	F=A*xnew+B*u(index);
	k2=step*F;
	xnew=x+k2/2;
	F=A*xnew+B*u(index);
	k3=step*F;
	xnew=x+k3;
	F=A*xnew+B*u(index);
	k4=step*F;
	x=x+(1/6)*(k1+2*k2+2*k3+k4); % Calculated next state

t=t+step;  			% Increments time
index=index+1;	 	% Increments the indexing term so that
					% index=1 corresponds to time t=0.

end % This end statement goes with the first "while" statement
    % in the program

%
% Next, we provide plots of the input and output of the plant
% and the output of the reference model
%

subplot(211)
plot(time,y,'-',time,ym,'--')
xlabel('Time (sec)')
title('Output of plant (solid) and reference model (dashed)')
subplot(212)
plot(time,u)
xlabel('Time (sec)')
title('Output of fuzzy controller (input to the plant)')

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国精产品一区一区三区mba桃花| 午夜电影久久久| 91精品国产综合久久久久久久| 99久久99久久久精品齐齐| 国模少妇一区二区三区| 国产在线视频一区二区三区| 中文字幕制服丝袜一区二区三区| 国产日韩欧美精品一区| 国产精品久久久久久久岛一牛影视 | 国产午夜精品一区二区三区嫩草 | 日韩激情一二三区| 精品一区二区三区免费播放| 久久av资源网| 91小视频免费看| 久久欧美中文字幕| 亚洲女人****多毛耸耸8| 日韩中文字幕麻豆| 成人妖精视频yjsp地址| 91久久精品一区二区三| 日韩一区二区视频| 亚洲综合小说图片| 福利91精品一区二区三区| 99久久精品国产麻豆演员表| 欧美日韩成人综合天天影院| 国产亚洲精品aa午夜观看| 日本不卡的三区四区五区| 91麻豆swag| 亚洲男女毛片无遮挡| 日本vs亚洲vs韩国一区三区 | 日韩一区二区三区电影| www.综合网.com| 久久蜜臀中文字幕| 91激情在线视频| 国产一区激情在线| 精品日韩欧美一区二区| 亚洲与欧洲av电影| 在线免费观看日本欧美| 五月天中文字幕一区二区| 欧美一区二区三区小说| 午夜精彩视频在线观看不卡| 色婷婷综合久久久| 中文字幕日韩一区二区| 在线不卡的av| 成人污视频在线观看| 一区二区三区av电影| 欧美精品乱码久久久久久按摩| 日韩av电影天堂| 亚洲人成网站色在线观看| 欧美久久久一区| 色综合久久天天综合网| 久久福利视频一区二区| 亚洲成精国产精品女| 国产亚洲综合色| 亚洲h精品动漫在线观看| 国内精品免费在线观看| 国产自产v一区二区三区c| 久久亚洲综合色| 99亚偷拍自图区亚洲| 日韩欧美成人午夜| 国产美女在线精品| 亚洲色图.com| 精品国产乱码久久| 国产一区二区三区高清播放| 18成人在线观看| 久久久精品综合| 欧美日韩午夜精品| 欧美伊人精品成人久久综合97| 国产成人精品一区二| 麻豆91在线看| 日本欧美在线观看| 亚洲国产日日夜夜| 亚洲欧洲av另类| 国产精品久久久久久久久免费相片| 88在线观看91蜜桃国自产| 91麻豆精品在线观看| 色噜噜狠狠色综合中国| 精品在线观看免费| 麻豆一区二区在线| 久草精品在线观看| 国产乱码精品一区二区三| 国产suv精品一区二区6| 色偷偷一区二区三区| 欧美三级日韩三级国产三级| 9191久久久久久久久久久| 久久精品一区二区三区四区| 国产精品福利一区二区三区| 一区二区三区欧美日| 日本中文字幕一区二区视频| 国产精品一区二区无线| 色一情一乱一乱一91av| 久久综合色鬼综合色| 亚洲欧美一区二区三区国产精品| 婷婷夜色潮精品综合在线| 春色校园综合激情亚洲| 欧美日韩一级二级| 国产精品日韩成人| 麻豆freexxxx性91精品| 91传媒视频在线播放| 中文字幕不卡三区| 久久99久久99精品免视看婷婷 | 懂色av一区二区三区蜜臀| 欧美日韩精品专区| 亚洲一区中文日韩| 成年人网站91| 国产精品国产自产拍在线| 九九精品视频在线看| 欧美电影免费观看高清完整版| 亚洲国产精品影院| 精品视频资源站| 亚洲午夜成aⅴ人片| 国产成人在线看| 午夜伊人狠狠久久| 欧美综合一区二区| 不卡视频在线观看| 麻豆91精品视频| 亚洲一二三四区| 亚洲欧美在线aaa| 国产农村妇女精品| 欧美亚洲自拍偷拍| 在线国产电影不卡| 一本色道久久加勒比精品| 精品一区二区三区在线视频| 日韩国产成人精品| 日韩有码一区二区三区| 亚洲一区二区精品视频| 亚洲日本在线看| 一区二区三区四区中文字幕| 中文字幕一区在线| 亚洲一区在线观看免费观看电影高清 | 精一区二区三区| 亚洲成av人影院在线观看网| 亚洲 欧美综合在线网络| 日本亚洲一区二区| 国产精品伊人色| 国产一区二区在线观看视频| 亚洲国产一区二区三区| 亚洲一区二区三区在线看| 亚洲人成网站色在线观看| 中文字幕五月欧美| 亚洲精品欧美综合四区| 亚洲欧美日韩系列| 曰韩精品一区二区| 亚洲你懂的在线视频| 亚洲精品免费播放| 亚洲激情自拍偷拍| 天堂在线亚洲视频| 国产精品自拍av| 欧美视频一区二区在线观看| 国产一级精品在线| 欧美性一区二区| 久久这里只有精品首页| 亚洲成人综合视频| 久久精品国产色蜜蜜麻豆| jizzjizzjizz欧美| 精品国产免费久久| 亚洲成av人片观看| 国产精品一区二区不卡| 欧美在线免费视屏| 久久久久久久久久久久电影| 1000部国产精品成人观看| 亚洲午夜免费福利视频| 国产一区不卡视频| 欧美日韩在线三区| 亚洲欧美日韩一区二区| 成人av资源网站| 亚洲欧美在线高清| 91丨九色丨国产丨porny| 亚洲图片欧美视频| 日韩你懂的在线观看| 岛国精品在线播放| 亚洲欧洲在线观看av| 菠萝蜜视频在线观看一区| 国产清纯在线一区二区www| 美女一区二区视频| 欧美伊人精品成人久久综合97 | 欧美午夜视频网站| 中文字幕一区视频| 国产精品456| 在线观看日韩高清av| 老司机精品视频导航| 日韩女优视频免费观看| 狠狠色丁香婷综合久久| 亚洲日本一区二区| 日韩一区二区视频| 一本久久精品一区二区| 美国一区二区三区在线播放| 亚洲天堂av老司机| 日韩欧美在线不卡| 蜜桃一区二区三区在线| 91久久香蕉国产日韩欧美9色| 欧美蜜桃一区二区三区| 97精品久久久久中文字幕| 欧美精品黑人性xxxx| 国产无一区二区| 亚洲午夜免费福利视频| 国产91丝袜在线观看| 欧美人体做爰大胆视频| 国产精品美女久久久久aⅴ | 国产成人午夜视频| 色美美综合视频|