Saveas vs. print command



Hi,
I am having a trouble saving a figure using "print" command. If I
use the "saveas" command instead, it saves as displayed on screen but I
can't specify the resolution I want as using "print". I attached a
small snippet of code below for you to see the difference I am talking
about. Can anybody help?

Use the code below followed by either
print -djpeg -r300 output
or saveas(gcf,'output','jpg');

There is visual difference between the two jpeg images produced (not
only difference in resolution).

thanks
Neel

% code

image_1 = rand(320,240);
image_2 = image_1;
image_3 = image_1;
image_4 = image_1;
image_5 = image_1;
image_6 = image_1;


fighandle = figure; subplot(2,3,1), imagesc(image_1);
set(gcf,'Position',[25 100 1200 800]);
axis equal; axis tight; drawnow;
title('Original Hand Image');


figure(fighandle); subplot(2,3,2), imagesc(image_2);
axis equal; axis tight; colormap(gray); drawnow;
title('Grayscale Hand Image');


figure(fighandle); subplot(2,3,3), imagesc(image_3);
axis equal; axis tight; colormap(gray); drawnow;
title('Grayscale and Normalized Hand Image');


figure(fighandle); subplot(2,3,4), imagesc(image_4);
axis equal; axis tight; drawnow; colormap(gray);
title('Binary Hand Image');


figure(fighandle); subplot(2,3,5), imagesc(image_5);
axis equal; axis tight; drawnow; colormap(gray);
title('Denoised and Smoothed Binary Hand Image');


figure(fighandle); subplot(2,3,6), imagesc(image_6);
axis equal; axis tight; drawnow;
title('Masked Hand Image');

.



Relevant Pages

  • Re: 3D Animation question
    ... Would these two tools help with what I am trying to create? ... If you want to see an actual soccer ball with labels and markings and color, things are a bit more challenging (this will be true no matter what package you use to do the animation). ... The text command gives a 2D string that should always face the camera, but I do not know for sure. ...
    (comp.soft-sys.matlab)
  • Re: ATI 3D Rage Pro AGP 1X / 2X (RE Post)
    ... 640x480 resolution) when I switched monitors with a computer that had been ... # This file is automatically updated on xserver-xorg package upgrades *only* ... # sudo dpkg-reconfigure -phigh xserver-xorg ... all I had to do was run the command listed in the last line ...
    (Ubuntu)
  • unidrv resolution issue (Please help)
    ... print in an higher resolution like 300X300. ... *Feature: Orientation ... *Command: CmdSelect ...
    (microsoft.public.development.device.drivers)
  • Re: Printer Driver Question
    ... Everything works fine till this for resolution 150, ... *Command: CmdSelect ... is divisible by the resolution Y scale. ...
    (microsoft.public.development.device.drivers)
  • Printer Driver(OEMUNI): Black Output
    ... *Command: CmdSelect ... *Feature: Resolution ... so itis divisible by the resolution Y scale. ...
    (microsoft.public.development.device.drivers)