"Undefined function 'equationsToMatrix' for input arguments of type 'sym'." Error

조회 수: 3 (최근 30일)
Ozgur
Ozgur 2015년 2월 18일
답변: Ozgur 2015년 2월 19일
Hello all,
I've been trying to deal with the equationsToMatrix function, but getting this "Undefined function 'equationsToMatrix' for input arguments of type 'sym'." error all the time.
To try, I took a sample code from Help. It gives the same error also.
syms x y z
[A,b] = equationsToMatrix([x+y-2*z==0,x+y+z==1,2*y-z+5==0], [x,y,z])
Any ideas? Version is 2014b.
BR, Ozgur

채택된 답변

Ozgur
Ozgur 2015년 2월 19일
I think this is related to couple of issues combined. MATLAB was on E:\ drive, I'd uninstalled and installed it again on C:\.
I've made toolbox path cache update afterwards. Now it is working.
P.S.: After posting this question, I realized that most of the symbolic functions gone crazy. This problem is not directly related to equationsToMatrix function.
Thanks for the replies.
Ozgur

추가 답변 (2개)

Erik S.
Erik S. 2015년 2월 18일
The code works for me.
Do you have symbolic toolbox installed?

Ozgur
Ozgur 2015년 2월 18일
Sure...
  댓글 수: 1
Erik S.
Erik S. 2015년 2월 18일
편집: Erik S. 2015년 2월 18일
When I run your code (using R2014b) I get
A=[1,1,-2;1,1,1;0,2,-1]
b=[0;1;-5]

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by