问题遇到的现象和发生背景
用matlab解多远一次方程组
问题相关代码,请勿粘贴截图
sym a;a=3*[1,2,1]+[1,1,1];h=a(:,2);g=a(:,3);[x,y]=solve(h==x+1,g-y==x);x
运行结果及报错内容
??? Error using ==> char
Conversion to char from logical is not possible.
Error in ==> solve>getEqns at 169
vc = char(v);
Error in ==> solve at 67
[eqns,vars] = getEqns(varargin{:});