extract equation from cfit contents

13 ビュー (過去 30 日間)
Rob L
Rob L 2014 年 7 月 14 日
回答済み: Shashank Prasanna 2014 年 7 月 14 日
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 ?

採用された回答

Shashank Prasanna
Shashank Prasanna 2014 年 7 月 14 日
You can use the formula methods to access the formula you fit:
load census
f = fittype('poly2');
formula(f)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by