How to find the numerical partial derivative of matrix

21 ビュー (過去 30 日間)
Evans Gyan
Evans Gyan 2019 年 3 月 14 日
コメント済み: Nadya Mawuntu 2022 年 5 月 17 日
Hello Matlab Community
I want to find the partial differentiaton of a particular column from a matrix. For instance
D =
0.9293 0.4733 0.9172 0.5678 0.9340
0.3500 0.3517 0.2858 0.0759 0.1299
0.1966 0.8308 0.7572 0.0540 0.5688
0.2511 0.5853 0.7537 0.5308 0.4694
0.6160 0.5497 0.3804 0.7792 0.0119
f =
0.4733
0.3517
0.8308
0.5853
0.5497
D is a 5x5 matrix and f a 5x1 matrix obtained from the second column of D.
I want to compute a partial differentiation of D with respect to f or the second column. Your input is highly appreciated. Thanks in advance
  3 件のコメント
Evans Gyan
Evans Gyan 2019 年 3 月 14 日
it can be defined mathematically as
δD/δf
Torsten
Torsten 2019 年 3 月 14 日
Interesting. Can you give an example ?

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

採用された回答

Star Strider
Star Strider 2019 年 3 月 14 日
See if the gradient (link) function will do what you want.
You will probably have to experiment with it, since I do not understand what you want to do (i.e. how you intend to calculate the derivative).
  3 件のコメント
Star Strider
Star Strider 2019 年 4 月 29 日
My pleasure.
If my Answer helped you solve your problem, please Accept it!
Nadya Mawuntu
Nadya Mawuntu 2022 年 5 月 17 日
Could you please share the code solution using gradient? thank you.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeElementary Math についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by