Introduction - If you have any usage issues, please Google them yourself
Defining the plot Function for the DocPolynom Class
The MATLAB plot function creates line graphs. The overloaded plot function selects the domain of the independent variable to be slightly larger than an interval containing all real roots. Then the polyval method is used to evaluate the polynomial at a few hundred points in the domain: