Question

Q0,0 = f(0) = 0, Q1,0 = f(3) = 225, Q2,0 = f(5) = 383, Q3,0 = $(8) = 623, 24,0 = f(13) = 993 Matlab Project 2 Write a MATLAB

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

PLEASE UP VOTE

MATLAB

%% function y = WS2_LastName_FirstInital()

clear
clc

n = 4; %number of terms-1

x = [0 3 5 8 13];
f = [0 225 383 623 993];

xx = 6; %interp point Q(6)

Q = zeros(n+1,n+1); %initialising Q with all zeros

for i=1:n+1
Q(i,i) = f(i); %Qi,i = yi
end

for j=2:n+1
  
for i=1:j-1
Q(i,j) = (((xx-x(j))*Q(i,j-1)) - ((xx-x(i))*Q(i+1,j)))/(x(i)-x(j)) ;
end

end

y = Q(1,5);

disp(Q)

0 450,0000 -90.0000 -22.5000 -12.1154 0 225,0000 462.0000 184.8000 129,3600 0 383.0000 463.0000 405.1250 1 623.0000 475.0000

Add a comment
Know the answer?
Add Answer to:
Q0,0 = f(0) = 0, Q1,0 = f(3) = 225, Q2,0 = f(5) = 383, Q3,0...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT