How to partial derive a matrix with multiple variables

7 ビュー (過去 30 日間)
Joachim Wagner
Joachim Wagner 2019 年 5 月 23 日
コメント済み: Star Strider 2019 年 5 月 24 日
Hello everybody,
I just have some trouble by finding the partial derivative of a matrix with multiple variables.
Let's say I have a [nXn]-matrix (i.e ), which is a function of three time dependent variables (i.e. ) and I need to find the partial derivative , where q is the vector .
Moreover, I need to find the time derivative .
I know this question might be a very simple one but I just find examples, which show how to build the partial drivative of only one variable as diff(Mgb,Z_A) and not for multiple time dependent variables.
It would be very greatful if somebody could give me a comment on this topic.
Many thanks in advance!

採用された回答

Star Strider
Star Strider 2019 年 5 月 23 日
If your matrix is symbolic, see if the jacobian (link) function will do what you want. The gradient (link) function is also an option, as is the gradient (link) function for numeric vectors and matrices.
  4 件のコメント
Joachim Wagner
Joachim Wagner 2019 年 5 月 24 日
Hey,
right, this looks good for me. Many thanks again for giving me your support. I will check this later and will give feedback afterwards.
Star Strider
Star Strider 2019 年 5 月 24 日
My pleasure.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumeric Solvers についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by