我来我网
https://5come5.cn
 
您尚未 登录  注册 | 菠菜 | 软件站 | 音乐站 | 邮箱1 | 邮箱2 | 风格选择 | 更多 » 
 

阿董



性别: 帅哥 状态: 该用户目前不在线
头衔: 一起说BYE_BYE
等级: 荣誉会员
家族: 菠韬汹勇
发贴: 24209
威望: 3
浮云: 387
在线等级:
注册时间: 2006-11-15
最后登陆: 2011-05-26

5come5帮你背单词 [ spare /sp/ə/ a. 备用的,多余的,空闲的;v. 节省,饶恕,抽出(时间) ]


DSP

有GG叫我把我的编程发出来,错了不要怪我

正确与否没有保障欢迎抛砖



做了的接上
==========================================================
49.Try to give a program to evaluate the DTFT of the following finite-length sequence in the range  :

Then run the Program and compute the real and imaginary parts of the DTFT, and the magnitude and phase spectra. Is the DTFT a periodic function of w? If it is, what is the period? Can you explain the jumps in the phase spectrum?
function dtft(N);
y=1.25*ones(1,41);
t=-20:20;
w=-6*pi:12*pi/N:6*pi;
X=zeros(1,N+1);
for n=1:N+1;
    k=0;
    for j=1:41
        k=k+y(j)*exp(-i*w(n)*j);
    end
    X(n)=k;
end
figure(1);
subplot(2,1,1);stem(t,y);
subplot(2,1,2);plot(w,X);
figure(2);
subplot(2,1,1);plot(real(X));
subplot(2,1,2);plot(imag(X));
figure(3);
plot(unwrap(angle(X)));




059.Design a linear-phase FIR lowpass filter with the following specifications: passband edge at 2.2rad/sec, stopband edge at 4.1 rad/sec, maximum passband attenuation of 0.15dB, minimum stopband attenuation of 42dB, and a sampling frequency of 20rad/sec. Using the function fir1 and window of Kaiser to design. Show the impulse response coefficients and plot the gain response of the designed filter. Comment on your result.
fedge=[2.2/pi/2,4.1/pi/2];
mval=[1,0];
dev=[1-10^(-0.15/20),1-10^(-42/20)];
ft=20/2/pi;
[n,wn,beta,type]=kaiserord(fedge,mval,dev,ft);
b=fir1(n,wn,type,kaiser(n+1,beta),'noscale');
[h,w]=freqz(b,1,256);
plot(w/pi,20*log(abs(h)));
grid;
xlabel('\omega/\pi');ylabel('gain,db');


[ 此帖被阿董在2008-01-14 19:38重新编辑 ]
顶端 Posted: 2008-01-14 19:28 | [楼 主]
gourdqu



性别: 帅哥 状态: 该用户目前不在线
头衔: 穿上牛仔裤
等级: 荣誉会员
家族: Red Devils--夢劇塲
发贴: 15463
威望: 1
浮云: 521
在线等级:
注册时间: 2006-10-27
最后登陆: 2011-04-14

5come5帮你背单词 [ descend /di'send/ vi. 下来,下降 ]


原来有这么多通信的兄弟啊
顶端 Posted: 2008-01-14 20:26 | [1 楼]
我来我网·5come5 Forum » 考试·毕业设计

Total 0.013216(s) query 6, Time now is:07-07 11:42, Gzip enabled
Powered by PHPWind v5.3, Localized by 5come5 Tech Team, 黔ICP备16009856号