MATLAB: How to solve 3 equation 2 variable system

equationgenetic algorithmMATLABsymbolicsystemvariablevariables

I'm trying to solve these equations:
((((4330-4158)*0.000173-0)*x)+(((4330-4158)*0.000173-0)^(2)*y))28316.85=4.09945
((((4340-4158)*0.000173-0)*x)+(((4340-4158)*0.000173-0)^(2)*y))28316.85=4.1565
((((4513-4158)*0.000173-0)*x)+(((4513-4158)*0.000173-0)^(2)*y))28316.85=7.6936
But when I go with
[x y]=solve('((((4330-4158)*0.000173-0)*x)+(((4330-4158)*0.000173-0)^(2)*y))28316.85=4.09945', '((((4340-4158)*0.000173-0)*x)+(((4340-4158)*0.000173-0)^(2)*y))28316.85=4.1565', '((((4513-4158)*0.000173-0)*x)+(((4513-4158)*0.000173-0)^(2)*y))28316.85=7.6936')
I get and error message about my solve argumentL –> Check for missing argument or incorrect argument data type in call to function 'solve'.

Best Answer

b = [4.09945; 4.1565; 7.6936]./28316.85;
A = [((4330-4158)*0.000173-0) ((4330-4158)*0.000173-0)^2;
((4340-4158)*0.000173-0) ((4340-4158)*0.000173-0)^2;
((4513-4158)*0.000173-0) ((4513-4158)*0.000173-0)^2];
c = A\b % x=c(1), y=c(2)
c = 2×1
0.0051 -0.0110
btw, your expressions are missing a "*" before the 28316.85.