591488385
2009-10-28, 15:27
按照书上程序输入:
t=0:0.001:2;
x=sin(2*pi*50*t)+sin(2*pi*100*t);
y=interp(x,4);
subplot(2,1,1);
stem(x(1:125));
subplot(2,1,2)
stem(y(1:250));
显示错误:
??? Attempt to execute SCRIPT interp as a function.
Error in ==> interp at 3
y=interp(x,4);
很多次都是这个错误,请指点一下。
t=0:0.001:2;
x=sin(2*pi*50*t)+sin(2*pi*100*t);
y=interp(x,4);
subplot(2,1,1);
stem(x(1:125));
subplot(2,1,2)
stem(y(1:250));
显示错误:
??? Attempt to execute SCRIPT interp as a function.
Error in ==> interp at 3
y=interp(x,4);
很多次都是这个错误,请指点一下。