- 积分
- 23793
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-3-15
- 最后登录
- 1970-1-1
|
发表于 2017-3-24 18:12:39
|
显示全部楼层
谢谢楼主回复,目前已能跑出程序,但是还是有一个问题:
chip1(1:length(WA)) = chi2inv(1-p/2,2);
chip2(1:length(WA)) = chi2inv(p/2,2);
%return
figure
if isempty(x)
plot(WA,'color','b');
hold on
plot(chip1,'color','r');
hold on
plot(chip2,'color','r');
else
xt = x(n1:length(y)-n2);
plot(xt,WA,'color','b');
hold on
plot(xt,chip1,'color','r');
hold on
plot(xt,chip2,'color','r');
end
title('Le Page method')
end
??? Undefined function or variable 'p'.
若是不加第一个end后也能跑出来,但是这个问题提示怎么破?不用图的话,自己导出数据也能做出图
|
|