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.
Peter Cervelli (2023). lagrange.m (https://www.mathworks.com/matlabcentral/fileexchange/47387-lagrange-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!