Lagrange or spline (interp2)

2 次查看(过去 30 天)
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

采纳的回答

Bruno Luong
Bruno Luong 2011-2-3
spline is almost always better.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Splines 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by