how to place a image on a specific coordinates of figure
62 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Stalin Samuel
am 29 Mai 2017
Kommentiert: Walter Roberson
am 29 Mai 2017
I wants to place a image on a specific coordinates of figure. Refer the attached image for more understanding
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 29 Mai 2017
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.
2 Kommentare
Walter Roberson
am 29 Mai 2017
Yes.
plot(30*rand(1,20));
hold on
d = imread('cameraman.tif');
image(flipud(d), 'XData', [6 10], 'YData', [7 20]);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Display Image finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!