필터 지우기
필터 지우기

how can i display a plot on an image that is displayed on GUI axes ?

조회 수: 1 (최근 30일)
Sarah
Sarah 2018년 11월 13일
편집: KSSV 2018년 11월 13일
I have displayed an image on an axes in MATLAB GUI, now I need to plot using plot(x, y) on this image without removing the image.
how is it possible to do that? and is there a way i can chose the position of the plot on the image?

답변 (1개)

KSSV
KSSV 2018년 11월 13일
편집: KSSV 2018년 11월 13일
Read about image here you can display image at specififed locations.....after this using hold on , you can plot your data on the image.
I = imread('peppers.png') ;
x = linspace(0,2*pi) ;
y = sin(x) ;
image([0 2*pi],[-1 1],I)
hold on
plot(x,y,'r')

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by