필터 지우기
필터 지우기

Find gradient numerically for the equation

조회 수: 1 (최근 30일)
MD JAHIDUL ISLAM
MD JAHIDUL ISLAM 2021년 9월 19일
답변: Alan Weiss 2021년 9월 20일
I have the following equation:
where R is a 3x3 matrix and w is 3x1 vector, Hg is 3x3 matrix and hg is 3x1 vector.
In my algorithm, I need to find the gradient of the function numerically which is written in the following form:
As J(x) will return a scalar value, I guess gradient function can not be used. As I am new in this domain, can anyone help me to find a way to calculate the gradient numerically (whether any function name or psudocode or snippet)?
Thanks a lot in advance.

채택된 답변

Alan Weiss
Alan Weiss 2021년 9월 20일
There are tools on the File Exchange that can help you find numerical approximations to derivatives. For example, see Adaptive Robust Numerical Differentiation by the impressive John D'Errico.
Alan Weiss
MATLAB mathematical toolbox documentation

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Newton-Raphson Method에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by