From: siyamalan manivannan on
I am new to this forum..

This is the code I am using, but the result is resized images.
If I disply one image per figure it works fine.

im1=imread('100_l1_[0-10].jpg');
im2=imread('100_l1_[10-20].jpg');

sp1 = subplot(2,1,1);
imshow(im1);

sp2 = subplot(2,1,2);
imshow(im2);



I have tried these too..
set(hFigure,'position',[10 10 1000 160]);
imshow(im1, 'InitialMagnification',100);
From: Sean on
"siyamalan manivannan" <manishiyam(a)yahoo.com> wrote in message <i447rd$gji$1(a)fred.mathworks.com>...
> I am new to this forum..
>
> This is the code I am using, but the result is resized images.
> If I disply one image per figure it works fine.
>
> im1=imread('100_l1_[0-10].jpg');
> im2=imread('100_l1_[10-20].jpg');
>
> sp1 = subplot(2,1,1);
> imshow(im1);
>
> sp2 = subplot(2,1,2);
> imshow(im2);
>
>
>
> I have tried these too..
> set(hFigure,'position',[10 10 1000 160]);
> imshow(im1, 'InitialMagnification',100);

Try the 'fit' option of 'InitialMagnification'.

I.e.
sp2 = subplot(2,1,2);
imshow(im2,'InitialMagnification','fit');
From: siyamalan manivannan on
Thanks but that is also not working...
From: ImageAnalyst on
Do you want an image to appear pixel-for-pixel with scrollbars shown
for panning/scrolling if the image is bigger than the size of the axes
it's being displayed in?