Unable to solve simultaneous equations!
조회 수: 2 (최근 30일)
이전 댓글 표시
I tried solving the simultaneous equations in Matlab by writing the following commands:
>> syms a b
>> [a,b]=solve(a+b==1,2*a-b==4,a,b)
The following message was displayed:
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{:});
Pla help me. Its urgent for my project eork.
댓글 수: 0
채택된 답변
Walter Roberson
2013년 11월 19일
Older versions of MATLAB cannot use == in a symbolic expression the way you show there.
Convert something of the form A == B into the form (A)-(B)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!