cftool weights given errors for y-data

matlabproblem.PNGI am using cftool for some exponential fits. I have errors for every y-data of my fit. How can I calculate the weights for a weighted fit using these errors? I was thinking that the weight is something like the inverse of the error but to be completly onest I don't know exatly what cftool requires as a weight to do a good fit

 採用された回答

Shubh Sahu
Shubh Sahu 2019 年 12 月 30 日

1 投票

In the first iteration fit your data with given method you want. Then calclaute weights by reciprocating residue and save that weights in workspace, the more the residue the less will be weights. In next iteration that weights will help you to get good fit.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

製品

リリース

R2019b

質問済み:

2019 年 12 月 26 日

回答済み:

2019 年 12 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by