单边谱 → 双边谱 | 您所在的位置:网站首页 › 傅里叶变换sinwt › 单边谱 → 双边谱 |
今天群里朋友问到一个问题:这个处理是啥意思? 记录一下。 思路: x为原信号,y为处理后的信号。其中大写为频域信号,小写为时域信号。 考虑到余弦对应的傅里叶变换,以及正弦对应的傅里叶变换,可以说是:余弦保持不变,正弦对应变为余弦。如果对于复信号呢?就是单边谱变为了双边谱。 仿真 clc;clear all;close all; fs = 2000; f0 = 4; t = 0:1/fs:1; x1 = sin(2*pi*t*f0); y1 = ifft(abs(fft(x1))); subplot 211 plot(t,x1,'k');hold on; plot(t,y1,'r--');hold on; title('时域信号') x2 = cos(2*pi*t*f0); y2 = ifft(abs(fft(x2))); title('时域信号') subplot 212 plot(t,x2,'k');hold on; plot(t,y2,'r--'); title('时域信号') |
CopyRight 2018-2019 实验室设备网 版权所有 |