Effacer les filtres
Effacer les filtres

Unable to solve simultaneous equations!

2 vues (au cours des 30 derniers jours)
Abin Krishnan
Abin Krishnan le 19 Nov 2013
Commenté : Abin Krishnan le 19 Nov 2013
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.

Réponse acceptée

Walter Roberson
Walter Roberson le 19 Nov 2013
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 commentaire
Abin Krishnan
Abin Krishnan le 19 Nov 2013
Thank you so much.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Function Creation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by