- plot df_track

git-svn-id: http://moon:8086/svn/matlab/trunk@53 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
2015-05-02 08:59:03 +00:00
parent 42cf28baf6
commit 1992026489
+6 -1
View File
@@ -244,6 +244,7 @@ H_pilots = [];
sym_out = [];
kk = 1;
H_ = [];
df_track_ = [];
for k=start:length(Z_)
%shifted symbol index
@@ -255,7 +256,8 @@ for k=start:length(Z_)
carrier_gain_bins = c2i(N, carrier_gain);
if ~isempty(H_pilots)
delta_freq_offset = fs/(2*pi*N)*angle( H_pilots * conj(H2_))
df_track = fs/(2*pi*N)*angle( H_pilots * conj(H2_));
df_track_ = [df_track_ df_track];
end
H2_ = H_;
H_= Z_(carrier_gain_bins, k)./(mag_gain.*exp(j*2*pi*phi_gain/1024)).';
@@ -307,5 +309,8 @@ for k=start:length(Z_)
end
figure;
plot(df_track_); grid; title('df_{track}');
function Y = spec_order(N, X)
Y = [X(N/2+1:N)' X(1:N/2)']';