フィルターのクリア

fitting data to an integral function

1 回表示 (過去 30 日間)
Amin
Amin 2011 年 10 月 27 日
回答済み: Jorge Gonzalez 2017 年 7 月 27 日
Hello, I have a set of data and the function, I must fit with, contains an integral part (my problem):
my function is:
quad(@(u) u./(u.^4 + (x*t)^2), 0, 1000);
I use:
func = inline ('quad(@(u) u./(u.^4 + (x*t)^2), 0, 1000)','p', 'x');
and later I use:
[p,r,j] = nlinfit(x,y,func,p);
---------------------------------------------
"func" should be a function dependant on "t" and "x". "t" is the parameter I want to fit. "x" is a vector with known values.
in my program, "func" is not a vector, and for fitting I need a vector(t). How is it possible that matlab calculated "func" as a vector (for all "w" values) and makes a "func" vector? Then I can fit "t" parameter!
I don't know my idea is right or not! Maybe you have a better idea. Thanks a lot.

回答 (1 件)

Jorge Gonzalez
Jorge Gonzalez 2017 年 7 月 27 日
hi i have the same problem, Could you solve it?

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by