Finite Difference Method to find gradient?

3 ビュー (過去 30 日間)
Sarp Ulger
Sarp Ulger 2015 年 11 月 21 日
編集済み: Star Strider 2015 年 11 月 22 日
I need to find the gradient of an n-dimensional function to eventually optimize it bu I need to be doing it by finite difference method. I can't use the built-in matlab functions but I have no idea how to code finite difference for n-dimensions. The function should be entered as x(1) x(2) and so on (so that the loops can calculate the gradient) and the dimension of the function will be found from the size of the starting point vector. Can someone help me out in this please? I really don't know how to code this.
  1 件のコメント
Star Strider
Star Strider 2015 年 11 月 22 日
編集済み: Star Strider 2015 年 11 月 22 日

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by