Express vector of linear combinations as matrix product

조회 수: 4 (최근 30일)
Cameron Gregory
Cameron Gregory 2021년 4월 18일
답변: Mahesh Taparia 2021년 4월 21일
I have a column vector of symbolic linear combinations such as
How can I convert it to the form of a matrix product like

답변 (1개)

Mahesh Taparia
Mahesh Taparia 2021년 4월 21일
Hi
You can use diff function to express the differentials. For example, in your case
syms x(t) y(t)
a=5;
b=6;
c=7;
d=8;
eqns = [a b;c d]*[diff(x);diff(y)];
For more information, you can refer this documentation on solving linear differential equations. Hope it will help!

카테고리

Help CenterFile Exchange에서 Number Theory에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by