No BSD License  

4.16667

4.2 | 6 ratings Rate this file 50 Downloads (last 30 days) File Size: 835 Bytes File ID: #7405
image thumbnail

Newton's Interpolation

by

 

11 Apr 2005 (Updated )

Script for Newton's Interpolation formula.

| Watch this File

File Information
Description

Script for Newton's Interpolation
newton_interpolation(x, y, p)
x and y are two Row Matrices and p is point of interpolation

Example
>> x=[1,2,4,7,8]
>> y=[-9,-41,-189,9,523]
>> newton_interpolation(x, y, 5)
OR
>> a = newton_interpolation(x, y, 5)

MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
23 Oct 2008 Muhammad Rafiullah Arain  
23 Sep 2008 Jeya tharsan

Hi,
I have try to use this .m file but I get problem. I think this program works only for few number of x values. While I give 45 x & 45 associated y values, it gives wrong resutlts but while I use 25 or less x & associated y values it works fine. I used your program to interpolate blasius exact solutions(it comes under boundary layer theory)
x y
0 0
0.2000 0.0066
0.4000 0.0266
0.6000 0.0597
0.8000 0.1061
1.0000 0.1656
1.2000 0.2379
1.4000 0.3230
1.6000 0.4203
1.8000 0.5295
2.0000 0.6500
2.2000 0.7812
2.4000 0.9223
2.6000 1.0725
2.8000 1.2310
3.0000 1.3968
3.2000 1.5691
3.4000 1.7470
3.6000 1.9295
3.8000 2.1161
4.0000 2.3058
4.2000 2.4981
4.4000 2.6924
4.6000 2.8883
4.8000 3.0853
5.0000 3.2833
5.2000 3.4819
5.4000 3.6809
5.6000 3.8803
5.8000 4.0799
6.0000 4.2796
6.2000 4.4795
6.4000 4.6794
6.6000 4.8793
6.8000 5.0793
7.0000 5.2793
7.2000 5.4793
7.4000 5.6792
7.6000 5.8792
7.8000 6.0792
8.0000 6.2792
8.2000 6.4792
8.4000 6.6792
8.6000 6.8792
8.8000 7.0792
it finds correct y for given x values but it gives wrong results while interpolating.
Please check this, & if you correct the bug, Please send me a copy also
Thanking you

Best regards,
S.Jeya

03 Dec 2005 iffi safe  
01 Dec 2005 Mansoor Ahmed

Dear Mr Rafi, AOA

You don't know me. I am a student of NUST. I got ur id while searching for MATLAB tutorials regarding interpolation.

I just wanna know if you have other MATLAB files regarding NUMERICAL ANALYSIS. If yes pls send them to me (if you dont mind ofcourse).

Thanx.

23 Nov 2005 Metha Waga

Dear Sir,
my name is Metha Martin Waga. I am a student at University of Applied
Sciences Berlin.
I need to write a presentation about Newton`s Interpolation Formular
and the involving applications Matlab-Program. I have downloaded your
Newton`s Interpolation Program from
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7405&objectType=FILE#

I would like to apply this program but I don't know how to use.

Could you suggest me how to use? Do you have any tutor information or a
guide file, which you could send to me. I 'll be appriciated so much.

My problem is,
On this programm I need to put nummer on x and y.
For exemple
x_i = (0,1.5,2.5,4.5)
y_i=(1,2,2,1)
After the Newton Interpolation Formular the result is y=x^3+5x^2+8x-12
Later I want to simulate the result with Matlab.

Best Regards,
Metha Waga

23 Sep 2005 Nadeem Malik

it is excellent. student mostly ask about Newton's Interpolation.

Contact us