![]() |
求助,路过大侠帮忙
这是我的程序
function F=myfun(a,x,y); %a为包含两个元素的向量 %其中a(1)=a1,a(2)=a2 F=y.^(a(1))+x.^(a(2))-1; clear clc x=[0.05 0.10 0.15 0.30 0.90 0.99]; d=[0.287671233 0.348173516 0.413242009 0.526255708 0.916666667 1]; y=((d-1)*(-1)).^(-1); a0=[0.61 0.29]; options=optimset('lsqnonlin'); [a,resnorm]=lsqnonlin(@myfun,a0,[],[],options,x,y); 执行时,出不来数,好像不是初值的问题。 哪位好心人帮帮忙!!! |
回复: 求助,路过大侠帮忙
lsqnonlin用法不正确 matlab里面help一下
|
所有时间均为北京时间。现在的时间是 14:00。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.