Fitting multiple datasets to non-linear coupled ODE's - fminsearch
조회 수: 8 (최근 30일)
이전 댓글 표시
I have attached my code for reference.
Essentially, I have two datasets: ch and cm; the former has an additional datapoint (a 12th day).
There are two unknown parameters, beta1 and beta2.
Essentially I want to fit my model to these datasets simultaneously, where I use the least-squares difference method to calculate the error [line 85-95].
When fitting to a single dataset, I understand the aim is to minimise the error. However, in this case I (maybe naively) have just computed a total error by adding these two together.
The code runs perfectly fine, I just wanted to make sure I was doing things correctly.
댓글 수: 0
답변 (1개)
Alan Stevens
2020년 11월 26일
Why not just use
errT=norm(cellHND - chND)+norm(cellLND - clND);
instead of looping through the sums.
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!