How to define a variable symbolic matrix in mupad?
Show older comments
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.
Answers (0)
Categories
Find more on Numeric Solvers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!