Filter löschen
Filter löschen

Lagrange or spline (interp2)

1 Ansicht (letzte 30 Tage)
Kamuran
Kamuran am 3 Feb. 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

Akzeptierte Antwort

Bruno Luong
Bruno Luong am 3 Feb. 2011
spline is almost always better.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by