What I suspect is happening here is when octave reaches the EOF it exits and doesn't draw the plots. Since there also aren't any commands to save the plots to a file that is why you don't see any output. You can perhaps add a "print" statement to get the plots to file
http://www.network-theory.co.uk/docs/octave3/octave_163.html
Or if you would rather watch the plots you can add
drawnow ;
sleep(10) ;
before the EOF to pause 10 seconds before exiting. For the second subplot you may want "subplot(2,1,2)" instead of "subplot(2,2,1)"
Hope this helps,
--judd