You can find the roots of a polynomial using the roots
function in MATLAB. Here is how you can find the roots of the polynomial 270 – 12x + 4x^2 + 2x^3:
main.m141 chars4 lines
This code snippet will calculate the roots of the given polynomial and store them in the roots_of_polynomial
variable.
gistlibby LogSnag