主题:[讨论]哪位大虾能帮帮我看下问题出在哪里?
clc;clear;
t=[0.25 0.5 0.75 1];
y=[0.7244 0.7098 0.6996 0.7680];
myfunc=inline('1/sqrt(-beta(1)*t^beta(2)+0.70*t^2+beta(1)+1','beta','t');
beta=nlinfit(t,y,myfunc,[1 1 1 1]);
k=beta(1),n=beta(2)
%test the model
tt=0.25:0.25:1 ;
yy=1/sqrt(-k*tt^n+0.70*tt^2+k+1);
plot(t,y,'o',tt,yy)
t=[0.25 0.5 0.75 1];
y=[0.7244 0.7098 0.6996 0.7680];
myfunc=inline('1/sqrt(-beta(1)*t^beta(2)+0.70*t^2+beta(1)+1','beta','t');
beta=nlinfit(t,y,myfunc,[1 1 1 1]);
k=beta(1),n=beta(2)
%test the model
tt=0.25:0.25:1 ;
yy=1/sqrt(-k*tt^n+0.70*tt^2+k+1);
plot(t,y,'o',tt,yy)