Skip to content
Snippets Groups Projects
Commit ff746bd2 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Corrected DC level for uniform full scale ampl input.

parent 24b4decc
Branches
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ close all; ...@@ -59,7 +59,7 @@ close all;
%rng(0); % random seed for repeatable result %rng(0); % random seed for repeatable result
% Try different amplitudes % Try different amplitudes
ampl = 1.1; % for input rand() or sin() use > 1 for overflow ampl = 1.5; % for input rand() or sin() use > 1 for overflow
% for input randn() ampl = sigma, so use >~ 0.3 for overflow % for input randn() ampl = sigma, so use >~ 0.3 for overflow
N = 1000; N = 1000;
...@@ -67,9 +67,9 @@ rad = [0:N-1]*2*pi/N; ...@@ -67,9 +67,9 @@ rad = [0:N-1]*2*pi/N;
deg = [0:N-1]*360/N; deg = [0:N-1]*360/N;
% Try noise or sinus inputs % Try noise or sinus inputs
input = ampl*randn(1,N); % Gaussian with sigma = ampl input = ampl*randn(1,N); % Gaussian with sigma = ampl
input = ampl*2*rand(1,N)-1; % Uniform full scale ampl range input = ampl*(2*rand(1,N)-1); % Uniform full scale ampl range
input = ampl*sin(rad); % Sinus with amplitude = ampl input = ampl*sin(rad); % Sinus with amplitude = ampl
% Determine correlator output for the input and the phase shifted input % Determine correlator output for the input and the phase shifted input
% for reference, null, null_scaled, clip and wrap. % for reference, null, null_scaled, clip and wrap.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment