I have been trying to implement dynamic fuzzy logic control and tuning the fuzzy set during run time. but it doesn't work.. Could anyone help me to solve this problem.
FLC = readfis(FL--control)
if (level < =10)
FLC.input(1).mf(1).params=[0 0 100 125];
FLC.input(1).mf(2).params=[125 150 200];
FLC.input(1).mf(3).params=[200 250 300 300]; FLC.input(1).mf(4).params=[100 125 150];
FLC.input(1).mf(5).params=[150 200 250]
else
FLC.input(1).mf(1).params=[0 0 50 100];
FLC.input(1).mf(2).params=[100 150 200];
FLC.input(1).mf(3).params=[200 250 300 300]; FLC.input(1).mf(4).params=[50 100 150];
FLC.input(1).mf(5).params=[150 200 250];
end