Corrected the path that is used to save plots. This also necesitates that matlab runs the following command: >> opengl SOFTWARE. Otherwise the saving of these plots may crash