Generating a continuous function from discrete data

조회 수: 35 (최근 30일)
MARCO LORENZI 2021년 11월 10일
댓글: MARCO LORENZI 2021년 11월 11일
Good morning everyone,
Is there a function tha can generate a continuous function from discrete data?
In particular i have the following. I basically need a way of interpolating this values even when they jump from 179 to -180. I cannot use look up tables because they need strinctly increasing inputs and i cannot use zero or firts order holds because the data is not function of time.

채택된 답변

Walter Roberson
Walter Roberson 2021년 11월 10일
mod(out.alpha, 360)
for that particular case -- it would fail if you went another loop.
For the generalized continuous case, see unwrap(), which works in radians.

추가 답변 (1개)

KSSV 2021년 11월 10일
Read about interp1. You can interpolate your data.


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