Extract xyz data from contour map

조회 수: 3 (최근 30일)
Clayton
Clayton 2013년 10월 22일
댓글: Image Analyst 2013년 10월 22일
My data is xy rings with z as a height. I create a contour map of the data. I need to be able to create xy data points with the z component having a value somewhere between the 2 contour lines. Then extract all of the xyz data. I have found a few programs to extract the data but it is only x,y data and it is basically the xy data that I originally started with.

답변 (1개)

Image Analyst
Image Analyst 2013년 10월 22일
You know the levels at which you drew the two contours. Let's say they are at 30 and 50. So now let's say you want all x,y coordinates at a level of 40, which would be in between the contour lines at 30 and 50. Just do
[y, x] = find(z == 40);
  댓글 수: 2
Clayton
Clayton 2013년 10월 22일
I need to extract the data from my contour before I can do that and don't know how.
Image Analyst
Image Analyst 2013년 10월 22일
I don't know what you're asking. What data? You can use the line of code I gave you to get the x,y coordinates of any array, and the z values at every point on the contour will simply be the z value you asked for. So I have no idea what you're asking.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by