fittype with integration limits containing independent variable
古いコメントを表示
Hello,
I am trying to do a custom fit of an equation of the form
a(x/b)*integral(f(t),0,b/x)
so that in Matlab it looks like (simplified):
ft=fittype('a*(x/b)^5*quad(f(t),0,b./x)',...
'independent',{'x'},'coef',{'a','b'});
The goal being to find a and b such that the fit is in closest agreement with the data I have.
However, x is a vector, so quad won't take it as a limit.
Is there a workaround to this?
Thanks,
Grant
2 件のコメント
Jin Ow
2020 年 4 月 13 日
Have you solved this problem?
I'm now fitting a curve defined by an integral as well, but error keeps coming out. T_T
john zhang
2020 年 5 月 11 日
me too. Have no idea how to use integration inside fittype.
回答 (0 件)
カテゴリ
ヘルプ センター および 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!