In this paper, an attractive approach for teaching genetic algorithm (GA) is presented. This approach is based primarily on using MATLAB in implementing the genetic operators: crossover, mutation and selection. A detailed illustrative example is presented to demonstrate that GA is capable of finding global or near-global optimum solutions of multi-modal functions. An application of GA in designing a robust controller for uncertain control systems is also given to show its potential in designing engineering intelligent systems.