If I already had a function and some points(x,y), how can I find six parameters in a function?
조회 수: 1 (최근 30일)
이전 댓글 표시
I already known a function: a+b.*exp(c.*t)+d.*t.*exp((e.*t).^f
unknown parameters are 6 : a b c d e f.
some points:
Please help me. Thanks!
댓글 수: 1
답변 (1개)
Matt J
2021년 1월 10일
fminspleas would be a good choice,
seeing as 3 of your parameters (a,b, and d) are intrinsically linear,
funlist={1, @(cef,t) exp(cef(1).*t) , @(cef,t) t.*exp((cef(2).*t).^cef(3)) };
[cef,abd]=fminspleas(funlist,[c0,e0,f0], t,y);
[a,b,c,d,e,f] = deal(abd(1), abd(2), cef(1), abd(3), cef(2),cef(3));
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Least Squares에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!