MATLAB - Algebra
https://www.tutorialspoint.com/matlab/matlab_algebra.htmSolving Quadratic Equations in MATLAB The solve function can also solve higher order equations. It is often used to solve quadratic equations. The function returns the roots of the equation in an array. The following example solves the quadratic equation x 2 -7x +12 = 0. Create a script file and type the following code −
Matlab Quadratic equation - Stack Overflow
stackoverflow.com › questions › 34828508Jan 16, 2016 · Write a MATLAB function that solves a quadratic equation of the form a*x^2 + b*x + c = 0. The syntax of your function should take the form. [quadRoots1,quadRoots2] = Q1_quadratic (a,b,c); where a, b and c are the quadratic coefficients; and quadRoots1 and quadRoots2 are the two determined roots. For the case where only one root is present (for example when a=1, b=2 and c=1 ), you should set your second output to NaN (not a number).