How to create Fuzzy logic code without using fuzzy toolbox
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Anisa hidary
le 1 Juil 2016
Commenté : Walter Roberson
le 1 Nov 2016
Hello. I have a problem with fuzzy logic i want to write a code in matlab without using toolbox, my example has two input velocity and distance and i shuold estimate velocity in the next time,membershiP function is triangular,defuzz method is center method. Thanks for helping me about this problem,how should to implement this without using fuzzy toolbox
Réponse acceptée
Plus de réponses (1)
fadhil mohammad
le 1 Nov 2016
hi . I have a problem with fuzzy logic i want to write a code in matlab without using toolbox, my example has two input energy level and distance ,membershiP function is triangular,trapezoidel, defuzz method is center method (mamdan), output is cost. Thanks for helping me about this problem,how should to implement this without using fuzzy toolbox for more clearance:- Where I need fuzzy logic code in matlab without using
fuzzy logic toolbox
, so, fuzzy logic file based on 2 parameters as input to
fuzzy inference system (energy level, distance) and
everyone have 3 membership function
[energy level:- low . med. High]
[ distance:- close . adequate . far]
And the output be [fuzzy_cost]
And the rule of fuzzy as following:-
1. If (energy level is high)and(distance is close) then (fuzzy_cost is very low)
2. If (energy level is med)and(distance is close) then (fuzzy_cost is low)
3. If (energy level is low)and(distance is close) then (fuzzy_cost is rang low)
4. If (energy level is high)and(distance is adequate) then (fuzzy_cost is med low)
5. If (energy level is med)and(distance is adequate) then (fuzzy_cost is very low)
6. If (energy level is low)and(distance is adequate) then (fuzzy_cost is med high)
7. If (energy level is high)and(distance is far) then (fuzzy_cost is rang high)
8. If (energy level is med)and(distance is far) then (fuzzy_cost is high)
9. If (energy level is low)and(distance is far) then (fuzzy_cost is very high)
1 commentaire
Walter Roberson
le 1 Nov 2016
I suspect you should be able to use http://www.mathworks.com/matlabcentral/fileexchange/2191-fuzzy-logic
Voir également
Catégories
En savoir plus sur Fuzzy Logic Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!