how to add external image in a matlab picture

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

 Akzeptierte Antwort

Chad Greene
Chad Greene am 28 Okt. 2014

0 Stimmen

Run this code:
figure
plot(1:100,(1:100).^2,'b')
axes('pos',[.3 .5 .3 .3])
I = imread('eight.tif');
imshow(I)

1 Kommentar

Chad Greene
Chad Greene am 28 Okt. 2014
Above, the axes command creates a new set of axes at the position given by [lowerleftx lowerlefty width height]

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 28 Okt. 2014

Kommentiert:

am 28 Okt. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by