How to get level values by X Y coordinates from a contour plot?
Show older comments
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 Comments
Walter Roberson
on 10 Feb 2020
Is the question about finding out what level values were using in a contour plot, or is the question about getting contour() to use particular level values that you specify?
Jiafeng Ye
on 10 Feb 2020
Walter Roberson
on 10 Feb 2020
Are you using custom levels or letting it pick the levels?
Jiafeng Ye
on 10 Feb 2020
Jiafeng Ye
on 10 Feb 2020
Answers (1)
KSSV
on 10 Feb 2020
Read the documentation of contour..there is option of getting level values fromt he function.
[M,c] = contour(X,Y,Z) ;
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!