From ca31e66851f6e26c8d376989abe51584ebc36a79 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 19 Apr 2015 18:41:56 +0000 Subject: [PATCH] - return correct window git-svn-id: http://moon:8086/svn/matlab/trunk@31 801c6759-fa7c-4059-a304-17956f83a07c --- ofdm/txwin_eval.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ofdm/txwin_eval.m b/ofdm/txwin_eval.m index 871120d..a588dbb 100644 --- a/ofdm/txwin_eval.m +++ b/ofdm/txwin_eval.m @@ -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)]; \ No newline at end of file