Howto insert image in guide in red area ?

조회 수: 2 (최근 30일)
Adisorn Phanukthong
Adisorn Phanukthong 2017년 9월 26일
댓글: Walter Roberson 2017년 9월 26일

답변 (1개)

Walter Roberson
Walter Roberson 2017년 9월 26일
Create an axes that is positioned there. Set the axes Visible property off. imshow() or image() an image into place.
  댓글 수: 2
Adisorn Phanukthong
Adisorn Phanukthong 2017년 9월 26일
Please sample code
Walter Roberson
Walter Roberson 2017년 9월 26일
fig = gcf;
ax = axes('Parent', fig, 'Units', 'normal', 'Position', [.05 0.75 .25 0.40]);
TheImage = imread('cameraman.tif');
image(TheImage, 'Parent', ax);
colormap(ax, gray(256));
axis(ax, 'image');

댓글을 달려면 로그인하십시오.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by