|
Control Surface of Fuzzy
System
To generate control surface of fuzzy controller as shown in figure 1
below, we must prepare data for 3 D plotting.

Figure 1. Block Diagram for PD-like Fuzzy Controller
These data are two inputs and an output of fuzzy system, that can be
generated using the listed code below
x=linspace(-5,5,100);
y=linspace(-5,5,100);
for i=1:100
for j=1:100
z(i,j)=fuzz_satelit(x(i),y(j));
end
end
surf(x,y,z)
title('Control Surface');
xlabel('Error');
ylabel('d_error');
zlabel('Output');
But
we must download the functions below to run the above code first
1.
Left membership
2.
Center membership
3.
Right membership
4.
Fuzzy controller
If
we run the code above, we will get the picture below.

|