2D and 3D cross sections

Hello, I have a file of contours and a file of points x,y,z. How can I integrate point data into a cross section of those contours. I have tried interp function without success.
Thnaks, Jul

답변 (1개)

Walter Roberson
Walter Roberson 2012년 5월 17일

0 개 추천

Are these coordinates on a regular array, or are they scattered? The interp family of functions cannot be used for scattered data.
If you do have scattered data then you could use TriScatteredInterp() . You could proceed by interpolating over a grid and then using that grid to interp*() the cross-sections, or you could interpolate over a grid and then use isosurface(), or you could just use the TriScatteredInterp to directly interpolate at the points of interest (which would probably have the best accuracy.)
Question: are any of the points NaN or "missing" and you need to fill them in? There are different techniques for that.

댓글 수: 1

Jul Smith
Jul Smith 2012년 5월 21일
hi, thanks for answering!
I ahve filled out the NaN or missing values.
At this point I generated a surface of those contours using surf()
However my problem is that I have this surface/contour file and 2 files with points. Basically I need to see those point on the profile line delimited/ectracted from the contour values. All points should be along or below the cross section line.
Any further idea? I saw other posts that maybe interp function() but not exactly...
Thank you,

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

카테고리

도움말 센터File Exchange에서 Contour Plots에 대해 자세히 알아보기

질문:

2012년 5월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by