X=[1,3,5,10,30,50,80,150,300,500,800,1500];
Y=[0.551,0.548,0.543,0.53,0.508,0.498,0.489,0.471,0.45,0.43,0.411,0.375];
N=length(X);
Y_new=1/(log(exp(1)+(X./a(1)).^a(2))).^a(3);
函数 f=sum((Y-Y_new).^2)/N;
如何利用fminsearch函数对功能函数f进行搜索最小值得到a(1),a(2),a(3),谢谢!

 Akzeptierte Antwort

facaso
facaso am 19 Nov. 2022

0 Stimmen

感觉结果不一定准,但是可以这么写
f = @(x)sum((1./(log(exp(1)+(X./x(1)).^x(2))).^x(3)-Y).^2);
[x,fval]=fminsearch(f,[100 0.5 0.5])

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 19 Nov. 2022

Beantwortet:

am 19 Nov. 2022

Community Treasure Hunt

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

Start Hunting!