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

阿董



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

5come5帮你背单词 [ combustion /kəm'bΛstən/ n. 燃烧 ]


一个DSP疑问

64. Writing a MATLAB program to compute the circular convolution of two length-N sequences via the DFT-based approach. Using this program to determine the following pair of sequences:
a=sin(pi*n/4),b=3^n,
And plot the result sequence.

自己编了个
N=16;
n=0:N-1;
a=sin(pi.*n/4);
b=3.^n;
Y=fft(a,N).*fft(b,N);
y=ifft(Y,N);
figure(1);stem(Y);
figure(2);stem(y);




按书上的程序仿照
n=0:15;
x1=sin(pi*n/4);
x2=3.^n;
L1 = length(x1);
L2 = length(x2);
if L1 ~= L2, error('Sequences of unequal length'), end
y = zeros(1,L1);
x2tr = [x2(1) x2(L2:-1:2)];
for k = 1:L1,
    sh = circshift(x2tr', k-1)';
    h = x1.*sh;
    disp(sh);
    y(k) = sum(h);
end

stem(sh)
怎么结果不一样

把两个序列该成书上的例题,结果两个程序计算的结果都一样正确 哪里错了
远程图片:1.jpg 远程图片:2.jpg
顶端 Posted: 2008-01-14 20:51 | [楼 主]
gibbuda



性别: 美女 状态: 该用户目前不在线
等级: 栋梁之材
发贴: 611
威望: 0
浮云: 1111
在线等级:
注册时间: 2007-09-25
最后登陆: 2012-03-26

5come5帮你背单词 [ summit /'sΛmit/ n. 顶点,极点,颠峰,高峰,最高级会议 ]


这一个产生的是圆周卷积,一个产生的是线性卷积吧
顶端 Posted: 2008-01-14 23:24 | [1 楼]
我来我网·5come5 Forum » 考试·毕业设计

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