Lag_mod(v,X,Y,deg)

Calculates Lagrange interpolation with optional degree order reduction.
14 Downloads
Updated 8 Dec 2017

View License

X is the node array. Y is the known solution at those nodes. v is the point for which we want the interpolation.
How to use: Specify degree of approximation in 'deg'. For example: I want a cubic Lagrange interpolation but my X and Y vectors have, lets say 30 points. Lag.m searches for the 4 nodes of X (and their Y associates) which are surrounding the inquiry point v, and only uses them for the interpolation. If a classical interpolation using all nodes is desired, specify 'all' in deg.

Cite As

Jorge Gutiérrez Gil (2024). Lag_mod(v,X,Y,deg) (https://www.mathworks.com/matlabcentral/fileexchange/65363-lag_mod-v-x-y-deg), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
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

.