Tower of Hanoi

Overview

This is a class project for MATLAB Programming. (MATLAB)

How to Run the Program

Open MATLAB, then type the following script in the command window to start the program:

toh    % 5 disks

or

toh(N) % N = 1, 2, 3,...

Demo

Here is the demo when running toh.

Tower of Hanoi MATLAB Demo