Filter löschen
Filter löschen

Placing images on a cartesian plot

2 Ansichten (letzte 30 Tage)
Sri Adiyanti
Sri Adiyanti am 12 Mär. 2021
Kommentiert: Sri Adiyanti am 14 Mär. 2021
Hi there,
I have a series images (.png) outputed from a matlab plotting script based on different sets of parameters.
I need to place all images on a cartesian plot, where X and Y represent the ratios of parameters.
My question is, what function in matlab that I can use to place those images in (x,y) coordinate, such as: plot (x,y, "image1.png")?
Thanks

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Mär. 2021
imread() into an array. image() the array.
image(Axeshandle, X, Y, ImageArray
X and Y are each coordinate vectors giving the left and right (X) and lower and upper (Y) data coordinates to use. The values should describe where to put the centers of the pixels.
  4 Kommentare
Sri Adiyanti
Sri Adiyanti am 13 Mär. 2021
Thanks again Walter, I see you are using the same XY coordinates for all images.
In my case, the main XY plate for placing all images is in a different scale (xlim=[-24 24],ylim = [-20 20]) from the xy coordinates of the images (xlim = [0 700], ylim = [0 700]).
I have done the scaling but still only 1 image plotted.
Could you pls see the attached if you could advise what i have missed?
Sri Adiyanti
Sri Adiyanti am 14 Mär. 2021
Thanks Walter, i managed to fix it..it works!!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by