MATLAB: Function of roots

function

I have another problem it says:
give the function whose roots are 4, -3, -2, 1/5 and 0.
should I use poly(x) or roots(x)?

Best Answer

roots() is to find the roots of a polynomial that has the given coefficients. The opposite of it is poly.
This is described right in the documentation, http://www.mathworks.com/help/techdoc/ref/poly.html