syms x
L=1;
N=2;
n=N+1;
h=L/N;
for i=1:n
X(1,i)=(i-1)*h;
end
num=1;
den=1;
for j=2:3
num=num.*((x-X(1,j)));
den=den.*(X(1,1)-X(1,j))
end
S(1,1)=num./den;
disp(S(1,1))

댓글 수: 1

John D'Errico
John D'Errico 2016년 4월 25일
Solve what? There is no question here, only some code with no meaning provided behind it.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

2016년 4월 25일

편집:

2016년 4월 25일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by