The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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


> > 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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.