lagrange.m

A pretty fast Lagrange interpolation algorithm
1K Downloads
Updated 31 Jul 2014

View License

Given values x, uses Lagrange interpolation to find F(x) and F'(x), where X and Y describe the function Y = F(X).
The syntax is similar to Matlab's interp1 function, except that the 4th input argument is the order of the polynomial used for interpolation.

I wrote this function to interpolate orbital positions of GPS satellites. Lagrange interpolation is well suited to this problem.

Cite As

Peter Cervelli (2024). lagrange.m (https://www.mathworks.com/matlabcentral/fileexchange/47387-lagrange-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Interpolation in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0