Undefined function or variable 'equationsToMatrix'.

3 Ansichten (letzte 30 Tage)
Yili Zhang
Yili Zhang am 24 Mär. 2019
Bearbeitet: Stephan am 24 Mär. 2019
Hi all,
I encountered an issue when I tried to solve the systematic equations.
By following the instructions from https://www.mathworks.com/help/symbolic/equationstomatrix.html, I typed in the exact same codes in to Matlab:
syms x y z
eqns = [x+y-2*z == 0,
x+y+z == 1,
2*y-z == -5];
[A,b] = equationsToMatrix(eqns)
However, I got the error:
Undefined function or variable 'equationsToMatrix'.
I did some search and could not find any solutions. Plus, my MaLab software is installed under the C:/ directory.
Any help would be higly appreciated!
Thanks,
-Yili
  1 Kommentar
Stephan
Stephan am 24 Mär. 2019
Bearbeitet: Stephan am 24 Mär. 2019
your Code works for me.
which equationsToMatrix
what result do you get?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

madhan ravi
madhan ravi am 24 Mär. 2019
https://in.mathworks.com/help/symbolic/equationstomatrix.html#bteza8k_seealso - released in 2012 b (requires symbolic math toolbox). If you have 2012b or later make sure you have that toolbox installed and have a valid license for it , if it satisfies all the above then the only way is to contact Mathworks support team by clicking the contact us button on the top right corner of this page.

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by