MATLAB: Function of roots


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,