MATLAB: How to place a image on a specific coordinates of figure
figureimshow
I wants to place a image on a specific coordinates of figure. Refer the attached image for more understanding
Best Answer
You can use image() or imshow(), passing them XData and YData options for the coordinates. The explanation in the image() documentation is much better for what those values represent: please be sure to read the documentation as it is not quite what you would expect.
If you were using 2D figures then you would use image() or imagesc() or imshow(), specifying the XData and YData properties in order to indicate where the corners of the image should be placed.
Placing a image into a 3D figure is more of a challenge. image() and imagesc() and imshow() all create inherently 2D graphics, which tend to disappear if you view them at even a slight angle. In order to have an image that does not disappear, you need to use either surf() or patch() with a flat surface (e.g., constant z), and withTexture Mapping turned on.
Best Answer