主题: [MATLAB基础] 初学者 请教高手指点
查看单个帖子
旧 2009-10-28, 15:27   #1
591488385
初级会员
 
注册日期: 2009-10-28
帖子: 2
声望力: 0
591488385 正向着好的方向发展
默认 初学者 请教高手指点

按照书上程序输入:
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);

很多次都是这个错误,请指点一下。
591488385 当前离线   回复时引用此帖