partial differentating a matrix by a vector

Hi guys,
I want to comute ,
where M is a symbolic matrix , and A is a symbolic vector. Are there any commands in Matlab can make it?
Many thanks!

 채택된 답변

Bjorn Gustavsson
Bjorn Gustavsson 2019년 10월 30일

0 개 추천

Have a look at the help and documentation for jacobian.
HTH

댓글 수: 4

Tony Cheng
Tony Cheng 2019년 11월 4일
Hey man, thx for ur adivce! However, jacobian is about two vectors. What I want is about one matrix and one vector.
My bad, but: Same difference. What you ask for would then be something like the combined Jacobians for each row of your input matrix, how, you'd go about storing those differentials is for you to chose, and will depend on what you need to do with them. Sometimes I prefer using 3-D arrays. Sometimes it is beneficial to use 1 and 2-D arrays for neat matrix-multiplications, then it is easy to convert matrices to column-vectors using:
V = M(:);
Then you've straightened out your matrix to a vector where you can directly use jacobian, after that you might want to reshape it to suit your needs.
HTH
Tony Cheng
Tony Cheng 2019년 11월 11일
Hi Bjorn, Thx so much forur great detailed description! I see how to use jacobian now! Your answer really helps a lot!
Thanks, I'm happy to have contributed.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2019년 10월 30일

댓글:

2019년 11월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by