How to optimise a specific equation in a model in order to fit the final curve of the model?
조회 수: 1 (최근 30일)
이전 댓글 표시
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1534682/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1534687/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1534692/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1534697/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1534702/image.png)
The validation figure based on the aforementioned equations is as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1534707/image.jpeg)
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1534712/image.png)
Thank you in advance.
댓글 수: 0
답변 (1개)
Matt J
2023년 11월 9일
댓글 수: 13
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
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,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1538430/image.png)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!