?? denoise.m
字號:
%example of Fourier transform of a signalt = 0:1e-2:10;%sinusoid signaly = cos(2*pi*t);%white Gaussian noisen = randn(1, length(y));%add noise to the signaly = y+n*2;%plot signal in the time domain, the signal is hardly perceivableplot(t, y);%take the Fourier transformf_y = abs(fft(y));%the frequency of the sinusoid signal is still significantly larger than%other frequency componentsplot((1:length(f_y))/length(f_y), f_y);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -