bufospro 0 Junior Poster

Hi,
I do a homework about image filtering.
I have to make some comparisons between my images. So I decided to use subplot function.

My code is

subplot(3,2,[1 3 5])
imshow(a);
hold off
subplot(3,2,2)
imshow(b);
hold off
subplot(3,2,4)
imshow(c);
hold off
subplot(3,2,6)
imshow(d);
hold off
saveas(gcf,'compare');

After that I want to make new figures. So

imshow(e);
saveas(gcf,'Αnother');

Matlab creates the first image (with comparison) but then creates an image with contents of previous image and name Another.

What am I doing wrong ??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.