Membership Function Implementation for Fuzzy Logic Control Systems
- Login to Download
- 1 Credits
Resource Overview
Detailed Documentation
In this document: First, we implement two input membership functions and one output membership function, typically defined using standard shapes like triangular, trapezoidal, or Gaussian functions through MATLAB's Fuzzy Logic Toolbox functions such as addvar and addmf. Next, we define 49 comprehensive fuzzy rules using the addrule function, which establish the logical relationships between input conditions and output control actions. Then, we employ defuzzification function to calculate the control variable U, where the output U is directly a precise value achieved through the MOM (Mean of Maximum) algorithm - selecting the value with maximum membership degree among activated rules. This implementation utilizes MATLAB's evalfis function for inference and defuzzification processes. Additionally, the documentation includes the display of three graphical windows: the internal schematic diagram of the fuzzy controller showing rule connections and inference flow, and the membership function plots for both inputs and output, which can be visualized using MATLAB's plotmf and ruleview functions to demonstrate the fuzzy sets distribution and system behavior.
- Login to Download
- 1 Credits