필터 지우기
필터 지우기

3D directivity plot, TriScatterInterp

조회 수: 4 (최근 30일)
Fabio Kaiser Fabio Kaiser
Fabio Kaiser Fabio Kaiser 2011년 8월 18일
Hi,
I want to create a 3D directivity plot (balloon plot) of the radiation of whatever.
This is not a hard task as I can just create measurement points on a sphere and then use surf to plot the points with the measured magnitude being the radius.
Now I want to measure only on a few points on the sphere and then interpolate to a more dense grid of points to make nice plots.
I have tried using TriScatterInterp with little success. It seems that the main problem is that the dense grid is outside the triangulation which yields NaN. But as it is the case nearly everywhere, I don't know how to deal with it.
Can anybody help me with that one...!?
Thanks in advance
Fabio

답변 (1개)

Aurelien Queffurust
Aurelien Queffurust 2011년 10월 10일
What about switching method as explained in the doc: Interpolant Outputs NaN Values
What we can read: An interpolant that uses the 'linear' or 'natural' method will return NaN values when evaluated at a query point outside the convex hull. These methods do not perform extrapolation outside of the convex hull of the point locations. However, you can identify such points and assign a value or reevaluate the interpolant using the 'nearest' method to get a representative value at that location.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by