How can i integrate this expression which includes matrices?

조회 수: 1 (최근 30일)
Volkan Yangin
Volkan Yangin 2021년 7월 2일
답변: Star Strider 2021년 7월 2일
Hi,
I have two matrices and will use them to have discrete form of state space. For this purpose, i have to implement some of integration procedures.
My A and B matrices are [ 1 2 ; 3 4] and [ 5 ; 6] respectively. T equals to 1.
How can i find the result of this formula?
Thanks,

채택된 답변

Star Strider
Star Strider 2021년 7월 2일
Try this —
A = [1 2; 3 4];
B = [5; 6];
B_d = integral(@(sigma)expm(A.*sigma), 0, 1, 'ArrayValued',1)*B
B_d = 2×1
132.4387 285.4127
See the documentation on integral for details.
.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by