matlab程序老出错n=6; m=2;y=[601938035,723070269,1031882511,1160017381,1295330000,1370536875];x=[1953,1964,1982,1990,2000,2010];X=[ones(n,1),x'];[b,bint,r,rint,s]=regress(y',X);s2=sum(r.^2)/(n-m-1);b,bint,s,s2rcoplot(r,rint)
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 14:46:32
matlab程序老出错n=6; m=2;y=[601938035,723070269,1031882511,1160017381,1295330000,1370536875];x=[1953,1964,1982,1990,2000,2010];X=[ones(n,1),x'];[b,bint,r,rint,s]=regress(y',X);s2=sum(r.^2)/(n-m-1);b,bint,s,s2rcoplot(r,rint)
matlab程序老出错
n=6; m=2;
y=[601938035,723070269,1031882511,1160017381,1295330000,1370536875];
x=[1953,1964,1982,1990,2000,2010];
X=[ones(n,1),x'];
[b,bint,r,rint,s]=regress(y',X);
s2=sum(r.^2)/(n-m-1);
b,bint,s,s2
rcoplot(r,rint)
matlab程序老出错n=6; m=2;y=[601938035,723070269,1031882511,1160017381,1295330000,1370536875];x=[1953,1964,1982,1990,2000,2010];X=[ones(n,1),x'];[b,bint,r,rint,s]=regress(y',X);s2=sum(r.^2)/(n-m-1);b,bint,s,s2rcoplot(r,rint)
直接运行没有错误,不知道是哪方面不明白.结果图为