MuPAD unable to get the expected representation
1 view (last 30 days)
Show older comments
Hi,
When I open MuPAD Notebook and type the following commands:
Ac := matrix([[0,1,0], [0,0,1], [0,0,0]]):
Dc := matrix([0,0,1]):
expre1 := exp((tk-tau)*Ac)*Dc:
expre2 := expre1*q*expre1':
Q := int(expre2, tau = tk-T..tk):
Simplify(Q)
to calculate the matrix Q, the result returned is an integral representation.
How to get the following expected results by using MuPAD,
Q(1,1) = (T^5*q)/20
Q(1,2) = (T^4*q)/8
Q(1,3) = (T^3*q)/6
Q(2,1) = (T^4*q)/8
Q(2,2) = (T^3*q)/3
Q(2,3) = (T^2*q)/2
Q(3,1) = (T^3*q)/6
Q(3,2) = (T^2*q)/2
Q(3,3) = T*q
Thanks in advance.
2 Comments
Walter Roberson
on 19 Apr 2013
Ac is going to be 3 x 3.
Dc is going to be 1 x 3.
For the exp((tk-tau)*Ac) part, are you intending matrix exponentiation or element-by-element exponentiation?
Either way, I think the result will be 3x3 -- and that cannot be right-multiplied by 1 x 3
Accepted Answer
Walter Roberson
on 19 Apr 2013
In MuPAD, exp() is not the matrix exponential; see http://www.mathworks.com/help/symbolic/mupad_ref/exp.html and http://www.mathworks.com/help/symbolic/mupad_ref/numeric-expmatrix.html
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!