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: Numerical integration of polyfit coefficients
Replies: 6   Last Post: Dec 12, 2013 5:50 PM

Advanced Search

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

Posts: 1
Registered: 12/12/13
Numerical integration of polyfit coefficients
Posted: Dec 12, 2013 12:56 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I have the coefficients of a polynomial of order 12 given to me using polyfit (it was fitted to model a probability density function). I now need to use the given polynomial f(x), multiply it by x^2, and integrate it over a given boundary.

I have tried using the integral function: integral(fun,xmin,xmax), where:
fun = @(x) poly2sym(f) and f is the coefficients given by polyfit, but this doesn't work.

Any ideas? Apologies if this seems trivial, I have tried everything!

Thanks in advance,

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.