This is a general purpose controller that I have built using the Fuzzy Logic Rules.

Read Me.m

% This is a general controller that I have built using the Fuzzy Logic Rules
% You don't need to have any mathematical background in fuzzy logic to run this
% model.
%
%I have provided two examples to see how this controller works:
%1-fuzzy_lookup_example1.mdl -the plant is linear
%2-fuzzy_lookup_example2.mdl -the plant is non-linear
% Steps to control your plant(model):
% 1-Replace the plant(model) that I provided(colored magenta) with yours
% 2-Run the simulation.
% 3-Look at the scope, if you are satisfied, great!!, if not, play around with the gains(colored red)
%
% Note: there is non mathematical proof that proves that this controller is stable,
% use it on your own responsibility
Author : Nassim Khaled
Januray 2009