Effacer les filtres
Effacer les filtres

Lagrange or spline (interp2)

1 vue (au cours des 30 derniers jours)
Kamuran
Kamuran le 3 Fév 2011
Hi,
I am working on a numerical calculation where I use spectral methods to find the flow profile. Although I can use cut-offs around 50*50 for 2D calculations. After having my velocity profile , I have been told that I can use an interpolation method to have velocity profile other than my grid points. In my calculation I am using non-uniform girds. So my data is not uniformly spaced. I wonder which one is a better way to interpolate my velocity profile. I know that if I use Lagrange polynomial I am going to use one polynomial for all my points. And in spline it is piece-wise. But I am not sure if it is piecewise linear for higher orders ?
Thank you

Réponse acceptée

Bruno Luong
Bruno Luong le 3 Fév 2011
spline is almost always better.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by