📄 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);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -