Here is an example of a function to solve a quadratic equation in MATLAB:
main.m445 chars19 lines
To use this function, you can call it with the coefficients of the quadratic equation:
main.m86 chars8 lines
This will output the roots of the quadratic equation.
gistlibby LogSnag