Effacer les filtres
Effacer les filtres

linear interpolation of angular data over a grid

8 vues (au cours des 30 derniers jours)
Abel Abraham
Abel Abraham le 18 Fév 2023
Modifié(e) : Abel Abraham le 18 Fév 2023
I have scattered data of certain angles ranging from 0 to pi that I want to interpolate on a grid. For my purposes 0 and pi are "pointing" in the same direction, but my problem is the same as with 0 to 2pi. I'm using griddata and linear interpolation won't suite my purpose as it will turn areas between 0 and pi into pi/2 not recognizing that 0 and pi are pointing the same way. I can't collapse my data into an interval of 0-pi/2 as the pi/4 points and 3pi/4 points shouldn't be treated the same.

Réponse acceptée

Abel Abraham
Abel Abraham le 18 Fév 2023
Modifié(e) : Abel Abraham le 18 Fév 2023
Found a function on file exchange!
This works from 0-360 degrees, so I can just multiply my 0-pi values by 2 and convert to degrees.

Plus de réponses (0)

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by