extract equation from cfit contents

I have a fit object cfit for which I can access the coeffeicients by using coeffvalues.
I can also 'see' the model used but I wish to reconstruct the equation using coeffvalues and some method of extracting the equation used for fit - can this be extracted with some function equivalent to coeffvalues ?

 Respuesta aceptada

Shashank Prasanna
Shashank Prasanna el 14 de Jul. de 2014
You can use the formula methods to access the formula you fit:
load census
f = fittype('poly2');
formula(f)

Más respuestas (0)

Categorías

Más información sobre Linear and Nonlinear Regression en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 14 de Jul. de 2014

Respondida:

el 14 de Jul. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by