I believe this has something to do with the default figure position setting of your teacher's computer.
If you want to increase the figure size, you can add such scripts to line 55 and 56.
fig.Position(3:4) = [200, 150];
This will change the figure size as shown below.
If you want to change the default figure position setting in your MATLAB, consider using such scripts.
set(groot, 'DefaultFigurePosition', [x,y,width,height])
Lastly, you can open the figure in a new window and enlarge it.