Unable to solve simultaneous equations!

1 回表示 (過去 30 日間)
Abin Krishnan
Abin Krishnan 2013 年 11 月 19 日
コメント済み: Abin Krishnan 2013 年 11 月 19 日
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.

採用された回答

Walter Roberson
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)
  1 件のコメント
Abin Krishnan
Abin Krishnan 2013 年 11 月 19 日
Thank you so much.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by