Express vector of linear combinations as matrix product
1 回表示 (過去 30 日間)
古いコメントを表示
I have a column vector of symbolic linear combinations such as

How can I convert it to the form of a matrix product like

0 件のコメント
回答 (1 件)
Mahesh Taparia
2021 年 4 月 21 日
Hi
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!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!