214 CHAPTER 6. NEURAL CONTROL
Figure 6.16. Proportional control network error surface
Figure 6.17. Integral control network error surface
From the results of training the two neural networks, we conclude that both
neural networks have learned the control functions well. We do however need to
test the neural network performance and see whether the networks can perform
well as controllers. For this, an arbitrary testing function is now simulated to
see how well the neural networks are able to provide proportional and integral
control.
w=1*pi;
time=0;
for i=1:100,