필터 지우기
필터 지우기

HOW TO GET UNDER A LINE VALUES USING PCOLOR

조회 수: 2 (최근 30일)
Ricardas Gudonavicius
Ricardas Gudonavicius 2022년 8월 7일
답변: Image Analyst 2022년 8월 8일
Hello, can somebody help me with my simple problem :D. Some story: I using dataset matrix (dimension 46x75) and I want to get values 'under a line' (more clear looking at the figure). Using this code to plot line to pcolor but don't find any ideas how to get values under a line:
Also was looking at findobj function but how I understand it get specific type values (extract just line values x and y but not pcolor values under it)
x = [0 -19 -21 38.5];
y = [0 -1.5 -11.5 -17];
figure()
g = pcolor(dataset); %shading interp; colormap jet;axis square off
h_ax = gca;
h_ax_line = axes('position', get(h_ax, 'position'));
plot(x,y,'g');
set(h_ax_line, 'YAxisLocation', 'right', 'xlim', get(h_ax, 'xlim'),'ylim', get(h_ax, 'ylim'), 'color', 'none');
axis square off
  댓글 수: 1
Jan
Jan 2022년 8월 7일
There is an answer in the mentioned question and it is useful in your case also: Use an 2D interpolation along the lines.

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

답변 (1개)

Image Analyst
Image Analyst 2022년 8월 8일
If you have the Image Processing Toolbox, use improfile

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by