How to define a variable symbolic matrix in mupad?

조회 수: 1 (최근 30일)
Omidreza Ghafarinejad
Omidreza Ghafarinejad 2016년 5월 10일
편집: Omidreza Ghafarinejad 2016년 5월 10일
I have a symbolic expression and I want to differentiate it. The expression is this:
Phi=p'*A^-1*B
p, A and B are some matrices which are functions of (x,y). A^-1 mean inverse of A. For B it doesn't need to be defined as a matrix, I can just define it as a variable of (x,y). But for A and p I should define them as matrices. So how? I want to write this expression in mupad and differentiate it with respect to x or y. It should tell me something like this:
diff(Phi,a)= (p,x)' * A^-1 B + p'(-A^-1*A,x*A^-1*B + A^-1 B,x)
I will be thankful if someone can give me a code that do this calculus in mupad.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by