MATLAB Answers

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

Ozgur

### Ozgur (view profile)

님이 질문을 제출함. 18 Feb 2015
최근 활동 Ozgur

### Ozgur (view profile)

님이 답변함. 19 Feb 2015
Ozgur

### Ozgur (view profile)

님이 답변을 채택함.
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

로그인 to comment.

## 답변 수: 3

Answer by Ozgur

### Ozgur (view profile)

on 19 Feb 2015
Accepted Answer

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

로그인 to comment.

### Erik S. (view profile)

Answer by Erik S.

### Erik S. (view profile)

on 18 Feb 2015

The code works for me.
Do you have symbolic toolbox installed?

로그인 to comment.

Answer by Ozgur

on 18 Feb 2015

Sure...

Erik S.

### Erik S. (view profile)

on 18 Feb 2015
When I run your code (using R2014b) I get
A=[1,1,-2;1,1,1;0,2,-1]
b=[0;1;-5]

로그인 to comment.

Translated by