马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
下面是我写的一段滤波的程序 和书上是一样的,可是运行的时候总是出现错误
fs=100;
t=(1:100)/fs;
s1=sin(2*pi*t*5);
s2=sin(2*pi*t*15);
s3=sin(2*pi*t*30);
s=s1+s2+s3;
subplot(311)
plot(t,s);
[b,a]=ellip(4,0.1,40,[10 20]*2/fs);
[H,W]=freqz(b,a,512);
figure
subplot(312)
plot(W*fs/(2*pi),abs(H));
sf=filter(b,a,s)
figure
subplot(313)
plot(t,sf);
错误提示:
??? Attempt to execute SCRIPT ellip as a function.
Error in ==> ellip1 at 10
[b,a]=ellip(4,0.1,40,[10 20]*2/fs);
哪位高手帮我看一下啊,拜托了!!!! |