Skip to content
Snippets Groups Projects
Commit 809f9b20 authored by nats's avatar nats
Browse files

correcting power factor

parent a63d651d
No related branches found
No related tags found
No related merge requests found
......@@ -12,23 +12,25 @@ function sig = modulate(msg, syms)
end
endfunction
% Care Absolute Power 1 is SQRT(2)
function np = gennoise(power, len)
np = (sqrt(1/2)*randn(1,len)+j*sqrt(1/2)*randn(1,len)) * sqrt(power);
np = (randn(1,len)+j*randn(1,len)) * sqrt(power);
endfunction
freq_step = 6.25; % 50Hz / 8
nb_freq = 8;
FS = 50;
nb_sample = 8; % Some information talk about 160ms symbol duration
FS = 500;
nb_sample = 80; % Some information talk about 160ms symbol duration
% Generating the 8 frequencies
sym_array = zeros(nb_freq, nb_sample);
t = (1:nb_sample);
% TX Offset
tx_offset = 2.5;
tx_offset = 0;
% Generate a signal with power SQRT(2) by default
for i = 1:nb_freq
fstart = 0 - (nb_freq-1) / 2;
findex = (fstart + i) * freq_step;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment