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:
Several small images on top of one plot

Subject: Several small images on top of one plot

From: Diego Torquemada

Date: 23 Sep, 2008 06:56:54

Message: 1 of 2

Hi!

I have got the following problem: I want to plot a 2D-function in
matlab, and then I want to insert (small) png-images at certain (x,y)
- locations within the figure. Any suggestions on how to do that?

Thanks a lot!

Regards,

Diego

Subject: Several small images on top of one plot

From: Walter Roberson

Date: 23 Sep, 2008 16:29:10

Message: 2 of 2

Diego Torquemada wrote:
 
> I have got the following problem: I want to plot a 2D-function in
> matlab, and then I want to insert (small) png-images at certain (x,y)
> - locations within the figure. Any suggestions on how to do that?

Use the three-argument form of image()

image([lowerleftx upperrightx],[lowerlefty upperrighty], imagematrix)

Note the positions are pixel centers; see the documentation of image()
for more details.

Tags for this Thread

No tags are associated with 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