lagrange.m
Version 1.0.0.0 (1.17 KB) by
Peter Cervelli
A pretty fast Lagrange interpolation algorithm
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 LinuxCategories
- MATLAB > Mathematics > Interpolation >
Find more on Interpolation in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |