Date: Jul 26, 2012 6:59 AM
Subject: Re: saving current figure?
"Saravanan Mani" wrote in message <email@example.com>...
> t = 0:0.001:10;
> x = sin(2*pi*t);
> fh = figure('Name','Test',...
> msgf = questdlg('Do you want to save your figure window','YES','NO');
> if length(msgf) > 2
> % we can our filename like example 'test' and which format you want
> % save like jpg
> elseif length(msgf) > 1
> disp(' do nothing')
> Can you please try this and let me know
> Saravanan Mani
Unfortunately, the command "saveas(gcf,'test','jpg');" does not preserve the DPI and dimensions. I have found that "saveas(gca,'myfigure.eps','epsc');" works slightly better but I still have to (1) open the image in photoshop and adjust the dimensions and (2) the pixel dimensions are slightly off.
> "Jessica" wrote in message <firstname.lastname@example.org>...
> > Hi,
> > Can anyone give suggestions about how to save the current figure with a specified DPI AND save it with the same dimensions it shows according to the axis. My current figure is 96 dpi and 1280 x 1024 pix and I want to save this (as a .jpg or .bmp) with the same properties. I also don't want to save the extra border around the figure (that is outside the figure handle).
> > Thanks