3.625

3.6 | 24 ratings Rate this file 398 downloads (last 30 days) File Size: 561 Bytes File ID: #899

Lagrange polynomial interpolation

by Carlo Castoldi

 

07 Oct 2001 (Updated 08 Oct 2001)

No BSD License  

Lagrange polynomial interpolation

Download Now | Watch this File

File Information
Description

Approx a point-defined function using Lagrange polinomial interpolation method

Acknowledgements
This submission has inspired the following:
lagrange interpolation and derivative, Barycentric Lagrange Interpolating Polynomials and Lebesgue Constant, Lagrange Interpolator Polynomial
MATLAB release MATLAB 5.2 (R10)
Zip File Content  
Other Files lagrange.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (29)
15 Jan 2002 steve xia  
22 Jan 2003 keene rolph

The source code is very fantastic.it is good for research especially for mathematics purpose.

20 Feb 2003 oziel alcocer  
30 Apr 2003 t t

beautiful,

24 Sep 2003 Sukant Gupta  
23 Nov 2003 sima asgari

math

30 Aug 2004 Fahad Abbassi

Man u r a king and matlab is your bitch!!

10 Feb 2005 Aleksey Rozsdobudko

what did u write?????? It can write even a child!!!!
dont use such words as "for","while" and anything like that in the matlab cos it's STUPPIDNESS!!!!!!

09 Mar 2005 im einnor

flawless program!

22 Apr 2005 bill cosby

Thank you for a great program

11 May 2005 JJ LS

Very Good

31 May 2005 T B

Great job!!! Good work!

24 Jun 2005 STEFANO IANNARILLI

THANK YOU VERY MUCH FOR IT.
I NEEDED FOR MY STUDYING

05 Oct 2005 frederico schultz

muito obrigado...boa sorte

25 Oct 2005 Jev Jeg  
09 Nov 2005 Haroon Awais

good work, but it is better to use Matlab "interp1" function.

21 May 2006 haris ahmad

i am a student of electronics engr and hav to do numerical diff using lagrange

28 May 2006 Jose Garcia  
07 Oct 2006 John D'Errico

Lagrange interpolation is one of those interpolation methods that beginning textbooks include, along the way to showing you some useful methods. I imagine the textbook authors want to show you some of the history of interpolation. The fact is, high order Lagrange interpolation of this ilk was a only ever a good idea BACK IN the time of Lagrange. There has actually been progress in knowledge since then. (Surprise!) This is a terribly poor choice of interpolation method today.

In general, splines or other methods like them (PCHIP) will be less likely to introduce interpolation artifacts, oscillations, etc. Splines will be FAR less sensitive to tiny amounts of noise than will a high order Lagrange.

Even if I choose to disregard the method it implements,
the code itself is poorly implemented. It is triply looped - totally unvectorized. Expect it to be slow and if you have a large number of points, it will take more memory than need be.

If you need to use an interpolation tool, start with interp1, spline, or pchip, or look to the splines toolbox for more choices.

03 Jun 2007 imran aslam  
14 Jun 2007 Arc .

Very usefull - I need it for convertion to java code.

25 Oct 2007 hira manzoor  
03 Nov 2007 Pier Francesco Maria Gatti

what is x? :D

29 Feb 2008 LAY Nary

I don't know

04 May 2008 mahesh nair  
30 May 2008 Satya Sudhakar Yedlapalli

Can be made as a basic matlab function

21 Aug 2008 sanjay zine  
15 Oct 2008 pamonz wank  
08 Dec 2009 Angela

and what exactly do you have to give as input??

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
approximation Carlo Castoldi 22 Oct 2008 06:38:17
interpolation Carlo Castoldi 22 Oct 2008 06:38:17
lagrange Carlo Castoldi 22 Oct 2008 06:38:17
polynomial Carlo Castoldi 22 Oct 2008 06:38:17
mathematics Carlo Castoldi 22 Oct 2008 06:38:17
approximations Carlo Castoldi 22 Oct 2008 06:38:17
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com