Roots function - Polynomials:
The roots function in MATLAB is used to find the roots of an equation represented by a polynomial. For illustration, for the mathematical function (Note that this is a mathematical expression, not a MATLAB!),
f(x) = 4x3 - 2x2 - 8x + 3
to compute the equation f(x) = 0:
>> roots([4 -2 -8 3])
ans =
-1.3660
1.5000
0.3660