Function which generates LaTeX figures (2 side by side) for each savefig
command in a given m-file. Kinda ugly, but it works!