请问下怎么把这个进行周期延拓呢?a = get(handles.edit1,'String');b = get(handles.edit2,'String');c = get(handles.edit3,'String');x1=str2num(a);x2=str2num(b);N=str2num(c);x11=fft(x1,N);%对x1傅立叶变换x12=fft(x2,N);%对x2傅立叶变
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/28 15:37:45
![请问下怎么把这个进行周期延拓呢?a = get(handles.edit1,'String');b = get(handles.edit2,'String');c = get(handles.edit3,'String');x1=str2num(a);x2=str2num(b);N=str2num(c);x11=fft(x1,N);%对x1傅立叶变换x12=fft(x2,N);%对x2傅立叶变](/uploads/image/z/6605325-45-5.jpg?t=%E8%AF%B7%E9%97%AE%E4%B8%8B%E6%80%8E%E4%B9%88%E6%8A%8A%E8%BF%99%E4%B8%AA%E8%BF%9B%E8%A1%8C%E5%91%A8%E6%9C%9F%E5%BB%B6%E6%8B%93%E5%91%A2%3Fa+%3D+get%28handles.edit1%2C%27String%27%29%3Bb+%3D+get%28handles.edit2%2C%27String%27%29%3Bc+%3D+get%28handles.edit3%2C%27String%27%29%3Bx1%3Dstr2num%28a%29%3Bx2%3Dstr2num%28b%29%3BN%3Dstr2num%28c%29%3Bx11%3Dfft%28x1%2CN%29%3B%25%E5%AF%B9x1%E5%82%85%E7%AB%8B%E5%8F%B6%E5%8F%98%E6%8D%A2x12%3Dfft%28x2%2CN%29%3B%25%E5%AF%B9x2%E5%82%85%E7%AB%8B%E5%8F%B6%E5%8F%98)
请问下怎么把这个进行周期延拓呢?a = get(handles.edit1,'String');b = get(handles.edit2,'String');c = get(handles.edit3,'String');x1=str2num(a);x2=str2num(b);N=str2num(c);x11=fft(x1,N);%对x1傅立叶变换x12=fft(x2,N);%对x2傅立叶变
请问下怎么把这个进行周期延拓呢?
a = get(handles.edit1,'String');
b = get(handles.edit2,'String');
c = get(handles.edit3,'String');
x1=str2num(a);
x2=str2num(b);
N=str2num(c);
x11=fft(x1,N);%对x1傅立叶变换
x12=fft(x2,N);%对x2傅立叶变换
y11=x11.*x12;%乘
y1=ifft(y11,N);%逆傅立叶变换
subplot(3,2,3);
n=0:length(y1)-1;
stem(n,y1,'.');
title('周期卷积结果');
xlabel('n');ylabel('y1(n)');
请问下怎么把这个进行周期延拓呢?a = get(handles.edit1,'String');b = get(handles.edit2,'String');c = get(handles.edit3,'String');x1=str2num(a);x2=str2num(b);N=str2num(c);x11=fft(x1,N);%对x1傅立叶变换x12=fft(x2,N);%对x2傅立叶变
>> N=24;M=8;
n=0:N-1;
x1=(0.8).^n;x2=[(n>=0)&(n<M)];
xn=x1.*x2;
xc=xn(mod(n,8)+1);%%%8为周期延拓的周期,即为N=8,mod求余运算
figure,stem(n,xn,'.');
xlabel('n');ylabel('xn');
axis([0,length(n),0,1])
figure,stem(n,xc,'.');
xlabel('n');ylabel('xc');
axis([0,length(n),0,1])