Overlaying a power distribution plot over an image

조회 수: 1 (최근 30일)
Usman Tahir Virk
Usman Tahir Virk 2017년 4월 13일
댓글: Usman Tahir Virk 2017년 4월 14일
I am trying to overlay a power distribution plot over an image with axis labels similar to what is shown here, but not successful. I would greatly appreciate help. Thanks in advance.
img = imagesc('image.jpg');
imagesc([min_x max_x], [min_y max_y], img);
hold on;
mesh(angle,distance,power);

채택된 답변

Walter Roberson
Walter Roberson 2017년 4월 13일
In your first line use imread rather than imagesc
  댓글 수: 4
Walter Roberson
Walter Roberson 2017년 4월 14일
I just realized you might be wanting the mesh plot to be the transparent part. If so then you should look at the various Alpha related properties at https://www.mathworks.com/help/matlab/ref/chartsurface-properties.html -- there are several.
Usman Tahir Virk
Usman Tahir Virk 2017년 4월 14일
Thanks for the nice tips, Walter. You're awesome. Best regards.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by