Newton-Raphson interpolation with model
이전 댓글 표시
Hello! I have a problem with Newton-Raphsons method interpolating with my model Acosh(Bx) + C. I need to find A, B and C using Newton Raphson but i'm just confused with the setup of the matrices. Here's the code:
Guess = [1,1,1];
A=Guess(1);
B=Guess(2);
C=Guess(3);
x=1;
i=1; % counter
du=1; % to get inside loop
while abs(du) > 1e-01
A=Guess(1);
B=Guess(2);
C=Guess(3);
F1 = A*cosh(B*x) + C;
F2 = A*cosh(B*x) + C;
F3 = A*cosh(B*x) + C;
Fm1 = [F1 F2 F3]';
J1 = cosh(B*x); %d/dA
J2 = A*x*sinh(B*x); %d/dB
J3 = 1; %d/dC
Jacobi = [J1 J2 J3]';
du = Jacobi\Fm1;
Guess = Guess-du;
i= i+1
end
Any info is appreciated. :)
댓글 수: 1
Torsten
2018년 11월 5일
You need at least three points (xi,yi) of the function
y = A*cosh(B*x)+ C
to estimate A, B and C.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Newton-Raphson Method에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!