Effacer les filtres
Effacer les filtres

how to add external image in a matlab picture

8 vues (au cours des 30 derniers jours)
Matt
Matt le 28 Oct 2014
Commenté : Chad Greene le 28 Oct 2014
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

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Visual Exploration dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by