Professional Documents
Culture Documents
Solve Greg Viot's Fuzzy Cruise Control System Using MATLAB
Solve Greg Viot's Fuzzy Cruise Control System Using MATLAB
Let the measured normalized speed difference be 100 and the normalized acceleration be 70.
Open matlab and type fuzzy .Now a dialog box appears as shown below
Here only one input is shown but we need two inputs in this problem. To add more inputs Edit add variable input
Now two inputs will appear. The name of inputs and outputs can be changed. Range is also entered.
Next double click the input. Then a dialog box will appear as shown. Here we can edit the membership functions as required.
To add more MF: Edit add MF input variable enter the required number. Name of the MF, range , type, parameters are entered.
After entering the values of all the membership function we can enter the fuzzy rule base. For this double click the box mamdani. Then a rule editor dialog box appears. Required rules are chosen. After selecting each rule click add rule.