Express vector of linear combinations as matrix product
2 次查看(过去 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!