how to place a image on a specific coordinates of figure

62 ビュー (過去 30 日間)
Stalin Samuel
Stalin Samuel 2017 年 5 月 29 日
コメント済み: Walter Roberson 2017 年 5 月 29 日
I wants to place a image on a specific coordinates of figure. Refer the attached image for more understanding

採用された回答

Walter Roberson
Walter Roberson 2017 年 5 月 29 日
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 件のコメント
Stalin Samuel
Stalin Samuel 2017 年 5 月 29 日
編集済み: Stalin Samuel 2017 年 5 月 29 日
Using plot command i already have some objects in the figure. In addition with that i wants to place a image. Is it possible?
Walter Roberson
Walter Roberson 2017 年 5 月 29 日
Yes.
plot(30*rand(1,20));
hold on
d = imread('cameraman.tif');
image(flipud(d), 'XData', [6 10], 'YData', [7 20]);

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDisplay Image についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by