Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: different size subwindows?
Date: Sun, 5 Oct 2008 22:18:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <gcbeeq$g75$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1223245082 16613 172.30.248.37 (5 Oct 2008 22:18:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 5 Oct 2008 22:18:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:493747


Original = imread('../lena.bmp');
nearest = imresize(Original, 2, 'nearest');
figure
spax1 = subplot(1,2,1); imshow(Original)
spax2 = subplot(1,2,2); imshow(nearest)

I would expect the image on the right to be twice as large as the image on the left, but they are displayed the same size. The variables contain twice as many pixels, so why isn't this reflected in the display?

Thanks,
Dave