Save Matlab figure as shown exactly

29 views
Skip to first unread message

Haifeng GONG

unread,
May 19, 2010, 6:06:58 PM5/19/10
to MathTools
figure('Name', 'fig name', 'Position', [185 55 766 887]);
% draw code here
set(gcf, 'PaperPositionMode', 'auto');
saveas(gcf, 'filename.png');

--
You received this message because you are subscribed to the Google Groups "MathTools" group.
To post to this group, send email to math...@googlegroups.com.
To unsubscribe from this group, send email to mathtools+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mathtools?hl=en.

Reply all
Reply to author
Forward
0 new messages