fminsearch函数咨询。
Ältere Kommentare anzeigen
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
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!