How to optimise a specific equation in a model in order to fit the final curve of the model?

1 回表示 (過去 30 日間)
Mohamed Elasmar
Mohamed Elasmar 2023 年 11 月 9 日
コメント済み: Matt J 2023 年 11 月 13 日
Hello,
I am developing a model and trying to validate this model with some experimental data. Two degree polynomial equations are used in this model as follows:
where
where
The validation figure based on the aforementioned equations is as follows:
I would like to optimise the constants of ,or even use higher degree polynomial equations in order to get the best fitting to the experimental data. Is there a code or a function in MATLAB that can simultaneously optimise several constants or pameters?
Thank you in advance.

回答 (1 件)

Matt J
Matt J 2023 年 11 月 9 日
Yes, there is polyfit.
  13 件のコメント
Torsten
Torsten 2023 年 11 月 13 日
Further, it was intentionally that I chose p(1) and p(2) not equal to 0 in my code suggestion (you divide by them !).
Matt J
Matt J 2023 年 11 月 13 日
I just see that T is a constant (383) and does not vary with i. In this case, the fitting as suggested doesn't make sense. Alternatively, you can use two different constants in the denominator and fit them:
In fact, you don't need more than one parameter, p1. The model can be rewritten,

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFit Postprocessing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by