Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


Frank
Posts:
115
Registered:
12/27/07


Re: how to use str polynomial for ploting
Posted:
Jun 16, 2012 1:19 PM


I do not understand what you want to do. If you simply want to plot the coefficient vectors (that I call poly1 and poly2):
plot(poly1, 'ob') hold on plot(poly2, 'xr') hold off grid
Otherwise:
> > doc polyval
Read about the other polynomial functions (poly, roots, and others) as well.
If you want to see your polynomial written somwhere on your plot as a string (after you create the string yourself):
>> doc text >> doc sprintf
The 'sprintf' call will help you format the string for 'text', although there are some other ways to do this as well. This is simply the one I usually use.



