How do I perform an integration on a two-dimensional surface of scatttered data?

조회 수: 127 (최근 30일)
John Wood
John Wood 2019년 8월 20일
댓글: John Wood 2019년 8월 26일
I have measured data in two dimensions, not on a uniform grid. I want to perform the surface integral over the two dimensions, to get a smooth 2D surface function that I can evaluate at any input (x, y), which may be beyond the original measurement space, so smoothness and sensible extrapolation are desirable features of the integrated surface.
I have used 'scatteredInterpolant' function to obtain the surface of the original data, and then used 1-dimensional numerical integration in each dimension to create the appearance of a surface, but this is not a function F(x,y).

답변 (1개)

Yogesh Khurana
Yogesh Khurana 2019년 8월 23일
Hi,
I am assuming that you already got the interpolated data by using scatteredInterpolant. Now for integrating the data you can use MATLAB’s integral functions like:
Following are some links that are some of the cases similar to this case:
Please refer to links above for more information.
Hope this helps!
  댓글 수: 1
John Wood
John Wood 2019년 8월 26일
The first link that you provided is very similar to what I am doing already, so perhaps I am on the right track and need some help with the details.
I have used scatteredInterpolant function on measured data, but the resulting surface is still quite noisy, particularly at the edges of the data set. None of the parameters 'linear', 'nearest' seem to make any diffrence, so if there is anything else I could try that may help.
I choose an integration starting point (in each direction) that is 'inside' the data in a relatively smooth region. The choice of starting point affects the result, in terms of the smoothness and shape of the integrated surface.
I also get different results depending on which axis I use for the first line integration, in other words, the integral isn't conservative, which it is supposed to be.

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

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by