Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Make a animation with Matlab

Subject: Make a animation with Matlab

From: Danh

Date: 20 May, 2010 19:20:18

Message: 1 of 4

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!

Subject: Make a animation with Matlab

From: EE Student

Date: 20 May, 2010 23:54:06

Message: 2 of 4

"Danh " <draftofDanh@gmail.com> wrote in message <ht421i$i9t$1@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

Subject: Make a animation with Matlab

From: mobileT83 T

Date: 21 May, 2010 01:31:05

Message: 3 of 4

Are you animating by showing a series of figures? if so you should check out im2frame and movie.

"Danh " <draftofDanh@gmail.com> wrote in message <ht421i$i9t$1@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!

Subject: Make a animation with Matlab

From: Danh

Date: 21 May, 2010 02:59:04

Message: 4 of 4

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.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us