Borrar filtros
Borrar filtros

Converting Polyfit exponents to a power of e

1 visualización (últimos 30 días)
Jerry Walker
Jerry Walker el 17 de Sept. de 2011
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?

Respuestas (1)

Walter Roberson
Walter Roberson el 18 de Sept. de 2011
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.

Categorías

Más información sobre Polynomials en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by