Borrar filtros
Borrar filtros

Lagrange or spline (interp2)

1 visualización (últimos 30 días)
Kamuran
Kamuran el 3 de Feb. de 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

Respuesta aceptada

Bruno Luong
Bruno Luong el 3 de Feb. de 2011
spline is almost always better.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by