--- MITgcm_contrib/enderton/Diagnostics/DiagPlot.m 2005/01/31 15:43:27 1.1 +++ MITgcm_contrib/enderton/Diagnostics/DiagPlot.m 2005/02/01 17:05:25 1.2 @@ -111,6 +111,10 @@ % Save plot as desired. if SavePlots - outputfile = [outputdir,'/',pagename,'.eps']; + if isequal(outputdir,'') + outputfile = [pagename,'.eps']; + else + outputfile = [outputdir,'/',pagename,'.eps']; + end print('-depsc2',outputfile); end