lagrange.m

A pretty fast Lagrange interpolation algorithm

You are now following this Submission

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 (2026). lagrange.m (https://www.mathworks.com/matlabcentral/fileexchange/47387-lagrange-m), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Interpolation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0