Question on the format of 2D curve fit equations in plot

I am using basic curve fitting for the first time in a while and I get a bunch of equations of the form:
y = 6.588e + 06x^2 +4028x - 1.066. Can someone tell me what the "e" is in the first term?
Thanks
Peter

 Respuesta aceptada

John D'Errico
John D'Errico el 30 de Sept. de 2025
Editada: John D'Errico el 30 de Sept. de 2025
Scientific notation.
6.588e + 06x^2 == 6.588*10^6 * x^2
Note that it is easier and faster to write, and even a bit easier to read once you learn it. This is commonly used all over MATLAB. For example:
x = 2.3*10^12
x = 2.3000e+12

7 comentarios

Also note that it would always be written with no space after the 'e' -- 6.588e+06 not 6.588e + 06
Thanks. One note: there was a space in the way it was presented:
Are you sure it's an official MATLAB program that created the above output ? If yes: which one did you use ?
It looks like the curve fitting TB app just formatted the equation, without using MATLAB to do the work. so someone arbitrarily decided to put a space in there
Possibly the code is using regexrep() or similar, putting spaces around + and - in the equations, failing to take into account that + and - can occur in scientific notation.
That was a snip of the output from the Basic Fitting tool that I got to from the tool menu in Plot in version R2024b on a Mac (maybe I need update). Here is the plot and the output together:
Also, now that I look at the image here, I see the version of the equation on the plot itself, and that is certainly clear.
Thanks everyone.
Peter

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 30 de Sept. de 2025

Comentada:

el 1 de Oct. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by