|
对长信号分段FFT和IFFT
N=10000;
n=1:N;
x=sin(2*pi*0.005*(n-1));
y=zeros(1,N);
for i=1 : 2
y1=x(1024*(i-1)+1:1024*i);
Y1=fft(y1);
y2=real(ifft(Y1));
y(1024*(i-1)+1:1024*i)=y2;
end
subplot 211; plot(x(1:2048)); grid;
xlabel('原始信号');
axis([0 2048 -1 1]);
subplot 212; plot(y(1:2048)); grid;
axis([0 2048 -1 1]);
xlabel('分段fft和ifft后拼接成的信号');
GMT+8, 2024-12-25 14:26 , Processed in 0.055218 second(s), 17 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.