Why the syms command is not working on my matlab?

239 次查看(过去 30 天)
when entering the syms command to define variables, an error occurs that says undefined function.

采纳的回答

Walter Roberson
Walter Roberson 2013-9-14
syms is part of the Symbolic Toolbox. The Symbolic Toolbox is an optional, extra-cost toolbox for the Academic license and the Professional license. The Symbolic Toolbox is included in the Student Version, but it is not installed by default.
  9 个评论
Abdelqader
Abdelqader 2024-2-27
编辑:Walter Roberson 2024-2-27
how i answer this question in mat lab
Solve the following system of simultaneous equations for x:
-2.0 x1 + 5.0 x2 + 2.0 x3 + 3.0 x4 + 4.0 x5 - 1.0 x6 = -3.0
2.0 x1 - 1.0 x2 - 5.0 x3 - 2.0 x4 + 6.0 x5 + 4.0 x6 = 1.0
-1.0 x1 + 6.0 x2 - 4.0 x3 - 5.0 x4 + 3.0 x5 - 1.0 x6 = -6.0
4.0 x1 + 3.0 x2 - 6.0 x3 - 5.0 x4 - 2.0 x5 - 2.0 x6 = 10.0
-3.0 x1 + 6.0 x2 + 4.0 x3 + 2.0 x4 - 5.0 x5 + 4.0 x6 = -6.0
2.0 x1 + 4.0 x2 + 4.0 x3 + 4.0 x4 + 5.0 x5 - 4.0 x6 = -2.0
Walter Roberson
Walter Roberson 2024-2-27
syms x1 x2 x3 x4 x5 x6
eqns = [
-2.0*x1 + 5.0*x2 + 2.0*x3 + 3.0*x4 + 4.0*x5 - 1.0*x6 == -3.0
2.0*x1 - 1.0*x2 - 5.0*x3 - 2.0*x4 + 6.0*x5 + 4.0*x6 == 1.0
-1.0*x1 + 6.0*x2 - 4.0*x3 - 5.0*x4 + 3.0*x5 - 1.0*x6 == -6.0
4.0*x1 + 3.0*x2 - 6.0*x3 - 5.0*x4 - 2.0*x5 - 2.0*x6 == 10.0
-3.0*x1 + 6.0*x2 + 4.0*x3 + 2.0*x4 - 5.0*x5 + 4.0*x6 == -6.0
2.0*x1 + 4.0*x2 + 4.0*x3 + 4.0*x4 + 5.0*x5 - 4.0*x6 == -2.0]
eqns = 
[A,b] = equationsToMatrix(eqns)
A = 
b = 
A\b
ans = 

请先登录,再进行评论。

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by