- return correct window
git-svn-id: http://moon:8086/svn/matlab/trunk@31 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
function [p Nt] = txwin_eval(Nu, Ng, Alpha)
|
||||
function [p Nt wng] = txwin_eval(Nu, Ng, Alpha)
|
||||
|
||||
Nfft = Nu; % FFT size
|
||||
CP = Ng; % Nb. samples in Cyclic Prefix
|
||||
@@ -7,4 +7,4 @@ Nt = 2*round(Nfft*Alpha/2); % Nb. samples in taper region
|
||||
p = 1/2*(1+cos(pi*[-Nt+1/2:Nt-1/2]/Nt)); % Raised-Cosine in TD
|
||||
p = [p(1:Nt), ones(1,Nfft+CP-Nt), p(Nt+1:2*Nt)]; % Add ones in middle
|
||||
|
||||
|
||||
wng = [p(1:Nt), ones(1, Ng-Nt)];
|
||||
Reference in New Issue
Block a user