MuPAD unable to get the expected representation
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2013-4-19
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
采纳的回答
Walter Roberson
2013-4-19
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!