I m trying to solve homogeneous linear system equations X = K exp (Lamda (t))
6 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Paul
2021-11-2
It doesn't work because A is a 3 x 3 matrix, but Y is only 2 x 1, so A*Y doesn't make sense. Maybe you meant to include a third state variable?
syms x(t) y(t) z(t)
A =[-4 1 1;1 5 -1;0 1 -3]
Y = [x(t); y(t);z(t)];
Y
odes = diff(Y) == A * Y
[xSol(t),ySol(t),zSol(t)] = dsolve(odes);
xSol(t) = simplify(xSol(t))
ySol(t) = simplify(ySol(t))
zSol(t) = simplify(zSol(t))
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Equation Solving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

