Borrar filtros
Borrar filtros

Generating a continuous function from discrete data

11 visualizaciones (últimos 30 días)
MARCO LORENZI
MARCO LORENZI el 10 de Nov. de 2021
Comentada: MARCO LORENZI el 11 de Nov. de 2021
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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 10 de Nov. de 2021
mod(out.alpha, 360)
for that particular case -- it would fail if you went another loop.
For the generalized continuous case, see unwrap(), https://www.mathworks.com/help/matlab/ref/unwrap.html which works in radians.
rad2deg(unwrap(deg2rad(out.alpha)))

Más respuestas (1)

KSSV
KSSV el 10 de Nov. de 2021
Read about interp1. You can interpolate your data.

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by