Using scatteredInterpolant for 1-D data

조회 수: 3 (최근 30일)
bluegold92
bluegold92 2019년 2월 22일
편집: Matt J 2019년 2월 22일
I have a simple 2xN vector of x and y values that are created by the countourc function; the values are samples from a single contour line on a plot and form a pseudo-circle. I want to be able to interpolate to find any value on the "circle" using either an x or y value, or better yet an angle from the origin. When I try to use any of the interp family, they balk either because the data is not strictly monotonically increasing or because there is a duplicate value somewhere. The scatteredInterpolant function, however, deals with that situation by eliminating the duplicates, but it seems only to work on 2-D data, i.e., each x,y grid point has an associated z value. All I want to do it interpolate points in 1-D, i.e., find the interpolated x intercepts, etc.

답변 (1개)

Matt J
Matt J 2019년 2월 22일
편집: Matt J 2019년 2월 22일

카테고리

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

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by