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

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

?? zishiyingmohukongzhi.m

?? 實(shí)現(xiàn)自適應(yīng)模糊控制的功能
?? M
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
			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)')

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品天美传媒沈樵| 亚洲久草在线视频| 欧美亚洲高清一区二区三区不卡| 蜜臀av一区二区在线观看| 欧美高清在线精品一区| 日韩精品一区二区三区视频| 欧美性三三影院| 91影视在线播放| 丰满放荡岳乱妇91ww| 麻豆国产精品一区二区三区| 一区二区成人在线| 国产精品久久99| 国产亚洲视频系列| 欧美成人bangbros| 91精品国产色综合久久不卡蜜臀 | 亚洲欧美电影院| 国产欧美日韩在线视频| 欧美一区二区三区四区在线观看| 在线视频亚洲一区| 色哟哟一区二区| 91啪在线观看| 91在线免费看| 91色九色蝌蚪| 91麻豆蜜桃一区二区三区| 成人午夜免费视频| 国产suv精品一区二区883| 蜜臀av一区二区在线免费观看 | 欧美xxx久久| 欧美一区二区视频免费观看| 欧美日韩一区成人| 欧美三级在线播放| 欧美日韩亚洲国产综合| 欧美午夜精品电影| 欧美绝品在线观看成人午夜影视| 91国在线观看| 欧美日韩精品一区二区三区蜜桃 | 中文字幕精品在线不卡| 国产日韩精品一区二区三区在线| 久久久蜜桃精品| 久久久午夜精品理论片中文字幕| 久久这里只精品最新地址| 精品国产乱码久久久久久图片| 欧美大片在线观看一区二区| 日韩视频一区二区在线观看| 日韩午夜在线观看视频| 亚洲精品一区二区三区影院 | 日本不卡高清视频| 久久精品国产一区二区三区免费看| 日韩成人免费在线| 极品少妇xxxx精品少妇偷拍 | www.综合网.com| 91亚洲精品久久久蜜桃网站| 91视频91自| 欧美猛男gaygay网站| 91麻豆精品国产自产在线观看一区| 欧美一二三区在线| 久久网站最新地址| 最新日韩av在线| 亚洲成av人片在线| 九九视频精品免费| 成人丝袜18视频在线观看| 成人av电影在线| 欧美自拍丝袜亚洲| 精品免费日韩av| 中文字幕一区不卡| 亚洲成人www| 国产在线看一区| 97se亚洲国产综合在线| 欧美疯狂做受xxxx富婆| 2021久久国产精品不只是精品| 国产拍欧美日韩视频二区| 亚洲欧美另类图片小说| 日韩—二三区免费观看av| 国产成人免费视频精品含羞草妖精| 91免费版pro下载短视频| 欧美日本乱大交xxxxx| 久久精品男人的天堂| 亚洲一区二区在线播放相泽 | 在线看不卡av| 欧美一级免费大片| 亚洲天堂成人在线观看| 免费观看日韩电影| 99精品国产热久久91蜜凸| 91精品国产91综合久久蜜臀| 欧美激情一区二区| 蜜臀a∨国产成人精品| gogo大胆日本视频一区| 欧美一区二区三区免费视频| 中文字幕av免费专区久久| 天堂成人国产精品一区| 岛国精品在线播放| 欧美一二三区精品| 一区二区三区免费网站| 国产精品自拍av| 6080亚洲精品一区二区| 亚洲品质自拍视频| 国产精品一区二区三区网站| 欧美乱熟臀69xxxxxx| 国产精品入口麻豆原神| 麻豆国产欧美日韩综合精品二区| 在线观看成人小视频| 国产精品丝袜91| 九九精品视频在线看| 欧美高清视频一二三区| 亚洲另类中文字| 成人永久aaa| 久久久青草青青国产亚洲免观| 日本欧美一区二区| 欧美日韩一区三区| 亚洲影院在线观看| 91女厕偷拍女厕偷拍高清| 国产午夜精品一区二区三区嫩草| 久久精品国产亚洲5555| 欧美日韩一区二区三区四区| 亚洲日本成人在线观看| 国产精品系列在线播放| 欧美精品一区二区三区在线播放 | 欧美va亚洲va在线观看蝴蝶网| 亚洲va在线va天堂| 一本色道久久综合狠狠躁的推荐 | 26uuu精品一区二区三区四区在线| 亚洲一区二区三区四区中文字幕| 成人黄色软件下载| 国产欧美一区二区三区在线看蜜臀| 男女男精品视频| 日韩欧美一二三| 精品一区二区免费看| 91精品欧美久久久久久动漫| 天堂一区二区在线| 91精品国产91久久久久久一区二区| 五月激情综合色| 欧美一区二区三区日韩| 免费成人结看片| 欧美电影免费观看高清完整版在线观看 | 91视频一区二区| 亚洲日本va午夜在线电影| 99精品欧美一区二区蜜桃免费| 中文字幕一区视频| 99re这里只有精品视频首页| 国产精品久久久久久户外露出 | 国产欧美综合在线观看第十页| 国产99精品在线观看| 国产精品久久三区| 97se亚洲国产综合自在线不卡| 亚洲精品亚洲人成人网在线播放| 91老师片黄在线观看| 亚洲一区欧美一区| 日韩一二三区视频| 韩国毛片一区二区三区| 久久精品视频一区二区| 成a人片国产精品| 亚洲人成人一区二区在线观看| 91福利视频网站| 日产精品久久久久久久性色| 欧美一级理论片| 成人综合婷婷国产精品久久免费| 亚洲欧洲精品成人久久奇米网| 日本福利一区二区| 免费观看在线综合| 日本一区二区三级电影在线观看| 91网址在线看| 日韩av中文字幕一区二区三区| 精品免费国产二区三区 | 亚洲精品在线电影| av福利精品导航| 午夜a成v人精品| 国产亚洲精品福利| 欧美丝袜自拍制服另类| 九九热在线视频观看这里只有精品| 国产精品国产精品国产专区不片| 欧美日本一区二区| 岛国精品在线播放| 日韩激情一区二区| 中文在线资源观看网站视频免费不卡| 在线观看av一区二区| 黄色日韩三级电影| 一区二区三区四区蜜桃| 精品少妇一区二区三区 | 欧美人与性动xxxx| 国产成人aaaa| 日韩国产在线一| 中文字幕在线观看一区二区| 6080国产精品一区二区| 成人国产一区二区三区精品| 亚洲不卡av一区二区三区| 国产区在线观看成人精品 | 日韩免费视频一区二区| 99久精品国产| 国产一二三精品| 亚洲第一电影网| 国产精品久久久久毛片软件| 欧美一卡在线观看| 91久久线看在观草草青青| 国产一区二区三区久久悠悠色av| 亚洲成人免费在线观看| 国产精品久久久久aaaa樱花| 精品国免费一区二区三区| 欧美日韩一级片网站| 91在线免费播放| 成人免费视频播放|