To download a fuzzy controller for an inverted pendulum coded
in C, click here.

To download a simulator for nonlinear systems based on the
Runge-Kutta method (4th order) that is written in C and currently
set up to simulate an inverted pendulum, click here
(hence this code can be used together with the code for the fuzzy
controller above to simulate a simple fuzzy control system).

To download C code for a base-10 genetic algorithm that is
currently configured to optimize a simple function, click here.

For the programs written in C it is easy to output the data
to a file and plot it in MATLAB. For a brief explanation of how
to output data from programs and plot it in MATLAB, click here.