how to solve a integral when the parameters are matrix

1 view (last 30 days)
I gor a equation to sove, but there two parameters are matrix, and the rest are integer. I want to keep all the letters untill the end, so that I can define the letters as numbers.
the equation is
x(t1) = e^(A*(t1-t0))*int(e^(A*(t1-t))*B*(-2*M/(p*s)*(t-t0)+2*M), dt )
here, A and B are matrix, t1, t0, M, p, s are known number. I want to solve this with a new equation.
Thank you so much..

Answers (1)

Mike Hosea
Mike Hosea on 9 Aug 2013
I don't get the final assignment to x(t1) of what I presume to be a matrix result. Also, I am not certain whether e^A means exp(A) (elementwise) or expm(A) (matrix exponential). I will assume the latter. Perhaps something like this?
expm(A*(t1-t0))*integral(@(t)expm(A*(t1-t))*B*(-2*M/(p*s)*(t-t0)+2*M),t0,t1,'ArrayValued',true)

Categories

Find more on Operating on Diagonal Matrices 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!