MuPAD unable to get the expected representation

조회 수: 2 (최근 30일)
Zhu
Zhu 2013년 4월 19일
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
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
Zhu
Zhu 2013년 4월 19일
Thanks for reply. As you say, Ac is a 3-by-3 matrix
In MuPAD, Dc := matrix([0,0,1]) is equivalent to Dc := matrix(3,1,[0,0,1]), so Dc is a 3-by-1 column vector
and exp((tk-tau)*Ac) is the matrix exponential of (tk-tau)*Ac
I check the code again. It seems the syntax is valid, but can't get the result as expected

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2013년 4월 19일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Decomposition에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by