How to get level values by X Y coordinates from a contour plot?

조회 수: 1 (최근 30일)
Jiafeng Ye
Jiafeng Ye 2020년 2월 10일
댓글: Jiafeng Ye 2020년 2월 10일
Hi everyone, I have a image which name is Image1, then I used the contour function with contour(double(Image1)); after which I get a 2-D contour plot. Then is it feasible if I want to get the level values of the contour plot with x coordinate from ,say 100 to 200 when corresponding y coordinate from 100 to 200. Breifly speaking, is it feasible that I want to get the level values of that 10000 points from contour plot(100*100). If so, how? Thanks
  댓글 수: 5
Jiafeng Ye
Jiafeng Ye 2020년 2월 10일
I just used a photo as image, then turn it into black-white mode for the contour, the level values on the plot is dependent on the pixel value of the photo.
Jiafeng Ye
Jiafeng Ye 2020년 2월 10일
Now I consider to draw a grid on the contour plot and get the values of grid points.

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

답변 (1개)

KSSV
KSSV 2020년 2월 10일
Read the documentation of contour..there is option of getting level values fromt he function.
[M,c] = contour(X,Y,Z) ;

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by