Save the program top3d.m (8 kB) and start MATLAB in the same directory. The program can be promoted by line:

top3d(30, 10, 2, 0.5, 3.0, 1.2)