手心脚心发热睡不着觉:matlab或mathematica怎样实现对离散点的傅立叶变换和逆变换

来源:百度文库 编辑:神马品牌网 时间:2024/05/03 19:17:51
例如:y=exp(-2x),其中x为时间离散点,范围为0-3,取等步长0.02,即(0.01,0.03,0.05……2.99)对应出一系列y值,以此做傅立叶变换
我知道如果是连续函数
y=exp(-at)—FFT—>[a*sqrt(2/pi)]/(a^2+w^2)
在origin里做傅立叶变换,但不知道我的变换是否正确?
请问用matlab中的fft,ifft命令是不是可以验证,怎么做呢?
PS:怎么输入x,y两组数据,矩阵?

Mathematica中的离散傅立叶变换:
Here is some sample data.
In[1]:=data = {1.3, 2.4, 1.7, 4.1, 2.9, 1.7, 5.1, 2.7};
This computes the discrete Fourier transform of the data. In general, the result is a list of complex numbers.
In[2]:=Fourier[data]
Out[2]={7.74282\[InvisibleSpace] + 0. \[ImaginaryI], -0.740685 -
0.677082 \[ImaginaryI], -0.919239 - 0.954594 \[ImaginaryI], -0.390685 +
1.72708 \[ImaginaryI],
0.0353553\[InvisibleSpace] + 0. \[ImaginaryI], -0.390685 -
1.72708 \[ImaginaryI], -0.919239 + 0.954594 \[ImaginaryI], -0.740685 +
0.677082 \[ImaginaryI]}
具体的东西你可以在Help Browser里面搜索到