New Member FAQ
|
Forums
|
Earn Revenue
Resources
Entrance
Ask Experts
Exam Papers
Jobs
English
Projects
Universities
Colleges
Courses
Schools
Training
My India
Members
|
Communities
|
Business Directory
|
Classifieds
|
Reviews
|
Silverlight Games
|
Peer Appraisal
|
Bookmarks
|
Polls
|
Mentors
|
Links
|
MCA Projects
|
Lobby
|
Gift Shop
|
Chat
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
MVR PURNA ...
(100)
amandeep
(48)
Nadheera V
(46)
Last 7 Days
PROSENJIT MANN...
(1978)
Aira
(1431)
Shobha Manasa
(1414)
more...
Awards & Gifts
Online Exams
Aptitude Questions
General Aptitude Tests
Medical Entrance
Engineering Entrance
Bank Tests
TOEFL & IELTS Questions
Fresher Jobs
Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi
Resources
Find educational articles, blogs, discussion threads and other resources.
Colleges
Find details about any college in India or search for courses.
MATLAB - Newton's Method of Interpolation
Posted Date: Total Responses:
0
Posted By:
Vikram Narayan C
Member Level:
Silver
Points/Cash
: 2
clear;
clc;
n = input('Enter the number of data:');
a = input('Enter the intermediate value to find: ');
for i=1:n
x(i) = input('x: ');
end
for i=1:n
y(i) = input('y: ');
end
h = (x(n) - x(1))/(n-1);
u = (a - x(1))/h;
v = (a - x(n))/h;
fory = y(1);
bacy = y(n);
dely = y;
t = n;
for i=1:n-1
disp(dely);
dely = diff(dely);
prof =1;
temp = u;
for j=1:i
prof = prof * temp;
temp = temp - 1;
end
temp = v;
prob = 1;
for j=1:i
prob = prob * temp;
temp = temp +1 ;
end
t = t - 1;
fory = fory + (prof/factorial(i))*dely(1);
bacy = bacy + (prob/factorial(i))*dely(t);
end
fory
bacy
Project Feedbacks
No feedbacks found. Be the first to respond and make money from
revenue sharing program
.
Post Feedback
You must
Sign In
to post a feedback.
Next Project:
MATLAB - Rungekutta Method
Previous Project:
MATLAB - Power Method - Eigen Vectors
Return to Project Index
Post New Project
Related Projects
Block transfer in reverse order in assembly 8085
How to play live movies in Visual Basic?
C Program - Implementing Stack using Linked List
C program to delete n Characters from a given position in a given string
Xml Formula Saver
Advertise Here
Contact Us
Advertise
Editors
Privacy Policy
Terms Of Use
ISC Technologies.
2006 - 2009 All Rights Reserved.