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 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