Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: how to use str polynomial for ploting
Replies: 1   Last Post: Jun 16, 2012 1:19 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Frank

Posts: 115
Registered: 12/27/07
Re: how to use str polynomial for ploting
Posted: Jun 16, 2012 1:19 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


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.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.