How to solve a system of equations symbolically? (MATLAB R2011a)
52 次查看(过去 30 天)
显示 更早的评论
This is what I'm trying to do:
syms x1 x2 x3 X1 X2 X3 t
S = solve('x1 = 3*t*X1+X2', 'x2 = 2*t^2*X2', 'x3 = 5*t*X3')
S = [S.X1 S.X2 S.X3]
I get a reference to non-existent field error though.
It's solving for x1, x2, and x3, but need to solve for X1, X2, and X3 in terms of x1, x2, x3 and t.
Please help! Thanks!
0 个评论
回答(1 个)
Azzi Abdelmalek
2012-11-30
编辑:Azzi Abdelmalek
2012-11-30
syms x1 x2 x3 X1 X2 X3 t
S = solve(x1==3*t*X1+X2, x2==2*t^2*X2, x3==5*t*X3,X1,X2,X3)
S = [S.X1 S.X2 S.X3]
6 个评论
另请参阅
类别
在 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!