fuzzy logic implementation aggregation
Afficher commentaires plus anciens
Hi Thank you for your help I have this code clear all; temp = newfis('temp','mamdani','prod','probor','prod','sum'); temp = addvar(temp,'input','input1',[0 40]); temp = addmf(temp,'input',1,'froid','trimf',[0 5 10 ]);
subplot(8,1,1)
plotmf(temp,'input',1);
temp = addvar(temp,'output','output1',[0 40]);
temp = addmf(temp,'output',1,'fort','trimf',[18 25 35]);
subplot(8,1,2)
plotmf(temp,'output',1);
% au début je suppose qu'on une seule règle
ruleList = [1 1 1 1];
temp = addrule(temp,ruleList)
showrule(temp)
%Axe de la premisse point_n = 40; % Determines MF's resolution
min_x = 0; max_x = 40; % Universe is [min_x, max_x] ymin=0; ymax=1; x = linspace(min_x, max_x, point_n)'; temp.input.range=min_x; temp.output.range=max_x; %ensembles d'observations AF1 = trimf(x, [0 5 10]); % Trapezoidal fuzzy set A' observationsubplot(3,1,1); subplot(8,1,3); plot(AF1) title('observation') hold on N=length(AF1) Step=5 %for i=1:Step:N
%AF1(i) %[ouput,IRR,ORR,ARR]=evalfis(AF1(5),temp,3)
[ouput,IRR,ORR,ARR]=evalfis(AF1(5),temp)
%end % [o,A,B,C]=evalfis(AF1(5),temp,3) subplot(8,1,7); axis([min_x max_x ymin ymax]); plot(ARR) title('Nouvelle conclusion')
I would like to browse AF1 and obtain to sum of aggregation i would like to evaluate [o,A,B,C]=evalfis(AF1(i),temp) but i dont obtain a fuzzy
Réponses (0)
Catégories
En savoir plus sur Fuzzy Logic Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!