🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.sci.electronics
Article #43

matlab fir�˲�

#43
From: puppet0411
Date: Mon, 25 Sep 2006 02:32
27 lines
1312 bytes
t = 0:0.01:1000;
A1 = 60; A2 = 60;
SPP1 = 200; SPP2 = 7;
f1 = 2*pi/SPP1; f2 = 2*pi/SPP2;
y1 = A1*sin(2*pi*f1*t); y2 = A2*sin(2*pi*f2*t);
y = y1+y2;
figure;
subplot(311);plot(t, y1);
subplot(312);plot(t,y2);
subplot(313);plot(y);

b = fir1(50,0.25);
figure;
[h,w] = freqz(b,1,512,2);
plot(w,abs(h));

yout = filter(b,1,y);

figure;
plot(yout); grid;

����Ϊʲô�Ͳ����˵������ź�y2�أ�����fir1����ij���Ƶ��������ã�


--

�� ��Դ:����ɽ��ˮվ http://bbs.neu.edu.cn��[FROM: 219.216.108.108]
Technical Details
Message-ID: <4QHFk9$0Wa@bbs.neu.edu.cn>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.media.kyoto-u.ac.jp!news.neu.edu.cn!NEU

Show Full Headers
Complete Article Headers
X-Google-Thread: 100bb0,4e5ef9c3840f6d53,start
X-Google-Attributes: gid100bb0,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.media.kyoto-u.ac.jp!news.neu.edu.cn!NEU
From: puppet0411@bbs.neu.edu.cn (puppet0411)
Newsgroups: cn.bbs.sci.electronics
Subject: matlab fir�˲�
Date: 25 Sep 2006 02:32:10 GMT
Organization: ��ɽ��ˮ
Message-ID: <4QHFk9$0Wa@bbs.neu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: EDA/M.1159151529.00