Central difference approximations to estimate a Jacobian matrxi
조회 수: 5 (최근 30일)
이전 댓글 표시
I have two functions F(x,y) and G(x,y) defined in script files FM.m and GM.m and I need to use central difference approximations to estimate the Jacobian matrix J=[Fx(1,2) Fy(1,2);Gx(1,2) Gy(1,2)] where Fx,Fy,Gx,Gy denotes partial differentiation variable.
The central difference approximation is f'(x)=(f(x+h)-f(x-h))/2h.
Any help would be really appreciated, thanks!
댓글 수: 0
답변 (1개)
Torsten
2016년 3월 17일
J(1,1)=(F(x+h,y)-F(x-h,y))/(2*h);
J(1,2)=(F(x,y+k)-F(x,y-k))/(2*k);
J(2,1)=(G(x+h,y)-G(x-h,y))/(2*h);
J(2,2)=(G(x,y+k)-G(x,y-k))/(2*k);
Best wishes
Torsten.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!