Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
2
votes
Accepted
computing convolution via zero, Periodic padding and FFT - confused about pad length and inf...
I did it here for illustration.
hp = circshift([h;zeros(R-(N+K-1),1)],-(N-1)); % Eq. (3)
% Compute convolution
vp = ifft(fft(gp,R). …
2
votes
Accepted
How to perform the OFDM frequency-domain oversampling in time domain
The MATLAB code below shows how to do time-domain interpolation
N = 5;
u = 2;
x = rand(N,1);
% Zero-padding in frequency domain
xpad = [x(1:(N+1)/2);zeros((u-1)*N,1);x((N+1)/2+1:end)];
xi_freq = ifft … (xpad);
% Interpolation in time domain
% Dirichlet kernel
dsinc = diric(2*pi*(0:u*N-1)/(u*N),N)/u;
% Circular convolution
xi_time = cconv(upsample(ifft(x),u),dsinc,u*N);
fprintf("L-inf of error = %.2e …