필터 지우기
필터 지우기

how to add external image in a matlab picture

조회 수: 8 (최근 30일)
Matt
Matt 2014년 10월 28일
댓글: Chad Greene 2014년 10월 28일
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