MATLAB: How to solve a simultaneous equation of 2 variables. equationsMATLAB x+3y=5;2x+4y=4. In general maths, we can be able to find the values of 'x' and 'y' from the above equations. How to find it in MATLAB? Best Answer If you have the Symbolic toolbox,syms x ysolve(x + 3*y - 5, 2*x + 4*y - 4) Related SolutionsMATLAB: Solving two linear equations with two variables xy = [2 3; 5 2]\[12;3] MATLAB: Solving two symbolic equations simultaneously syms x y a beq1=a==x+y;eq2=b==x-y;[xsol,ysol]=solve([eq1 eq2],[x y])sol.xsol.yor:syms x y a beq1=a==x+y;eq2=b==x-y;[xsol,ysol]=solve([eq1 eq2],[x y]) Related QuestionHow to solve Ax=b where A is a rectangular matrix for higher order in matlabDraw othorgonal trajectories using differential equations
Best Answer