Thursday, December 10, 2009

How to print nice figure on matlab

Here is an example that can print current figure to a eps file with DPI=300 .

figure;
print(gcf, '-depsc','-r300', figname);

"gcf" means the current figure. "-depsc" means save as eps color image. "-r300" means 300dpi, "figname" should be something like "name.eps"

2 comments:

said...

雖然說上班很累,不過還是得努力應付每一天,看看文章休息一下,謝謝你哦!..................................................

GuoLiang said...

不客气。。。呵呵。。。