フィルターのクリア

Converting Polyfit exponents to a power of e

1 回表示 (過去 30 日間)
Jerry Walker
Jerry Walker 2011 年 9 月 17 日
I have used polyfit to convert a raw data file of current and voltage for a diode to an equation for current = f(voltage) and plotted the equation with a very good fit of a plot of the raw data. I would like to convert the polyfit exponents to a power of e or exp(power). I have looked at MATLAB help for taylor or maclaurin and other related functions with no corelation on my part. Is there something in the tool boxes that will do this conversion?

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 9 月 18 日
I am not clear as to what you are trying to do. Suppose the polynomial was (say) x^3 - x^2 + x + 1, then what output would you expect, or at least what form of output?
Are you trying to convert a polynomial to a single exponential that is itself in polynomial form? If so then you could do a series expansion of the ln() of the polynomial. That will, however, suffer from the usual problems of series expansion: increasing inaccuracy as you get further from the point of expansion. You would need to decide what your target range was and what your target error limit was over that range, in order to figure out how many terms you needed.

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by