how to add external image in a matlab picture

8 次查看(过去 30 天)
how can I add external image in a matlab plot. Lets say for example i have Y=x plot and i want to add my photo at the top of the plot.
I appriciate your help.
Thanks
Matt

采纳的回答

Chad Greene
Chad Greene 2014-10-28
Run this code:
figure
plot(1:100,(1:100).^2,'b')
axes('pos',[.3 .5 .3 .3])
I = imread('eight.tif');
imshow(I)
  1 个评论
Chad Greene
Chad Greene 2014-10-28
Above, the axes command creates a new set of axes at the position given by [lowerleftx lowerlefty width height]

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Visual Exploration 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by