From: Danh on
I'm working with Matlab and I need to express my result as a animation (for more vivid and easier to understand).

To make that animation, I create two image files, One image is background image. The second image will be displayed above background image. And I will show these image together, 30 times per second.

But now I don't know how to show two images in the same figure, one image is above the another.

Anyone can help me, I think this problem is interesting and useful for some people.

If you know others way to make animation. Please let me know.

Thank you!
From: EE Student on
"Danh " <draftofDanh(a)gmail.com> wrote in message <ht421i$i9t$1(a)fred.mathworks.com>...
> I'm working with Matlab and I need to express my result as a animation (for more vivid and easier to understand).
>
> To make that animation, I create two image files, One image is background image. The second image will be displayed above background image. And I will show these image together, 30 times per second.
>
> But now I don't know how to show two images in the same figure, one image is above the another.
>
> Anyone can help me, I think this problem is interesting and useful for some people.
>
> If you know others way to make animation. Please let me know.
>
> Thank you!


It depends on what you are trying to animate, but I would start by looking up "hold" "pause" "draw now" and go from there
From: mobileT83 T on
Are you animating by showing a series of figures? if so you should check out im2frame and movie.

"Danh " <draftofDanh(a)gmail.com> wrote in message <ht421i$i9t$1(a)fred.mathworks.com>...
> I'm working with Matlab and I need to express my result as a animation (for more vivid and easier to understand).
>
> To make that animation, I create two image files, One image is background image. The second image will be displayed above background image. And I will show these image together, 30 times per second.
>
> But now I don't know how to show two images in the same figure, one image is above the another.
>
> Anyone can help me, I think this problem is interesting and useful for some people.
>
> If you know others way to make animation. Please let me know.
>
> Thank you!
From: Danh on
Thank you EE Student and mobileT83 T for helping me.
Now I just wonder how to display two image: the small image above a larger image.