reconstruct_FFT - Upsampling and Interpolation

版本 1.0.0.0 (5.0 KB) 作者: Daniel Frisch
reconstruct_FFT fills in zeros and performs an ideal lowpass filtering at the nyquist frequency.
158.0 次下载
更新时间 2016/6/13

查看许可证

Reconstruction of Original Signal based on Samples.
Upsampling including ideal lowpass filtering by FFT.
For ideal reconstruction, measurement interval must be
an integral multiple of periodicity of input signal!
Input arguments
Required
1. Time vector (equally spaced)
2. Sample vector (same length as time vector)
Optional Name-Value pairs
- 'Factor', N [positive integer] (default: 100)
Output will have N time as much samples as input.
- 'Plot', [logical] (default: false)
Plots spectrum of intermediate signals.
Or call reconstruct_FFT() without any arguments to view an example.

Example:
F_s = 5; % Sampling frequency
f0 = 2; % Signal frequency
time = 0:1/F_s:2-1e-12; % Time vector
samples = cos(2*pi*f0*time); % Signal vector
[ time_rec, samples_rec ] = reconstruct_FFT( time,samples );
figure; stem(time,samples); hold on; plot(time_rec, samples_rec);

引用格式

Daniel Frisch (2024). reconstruct_FFT - Upsampling and Interpolation (https://www.mathworks.com/matlabcentral/fileexchange/57651-reconstruct_fft-upsampling-and-interpolation), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Multirate Signal Processing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Image change.