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
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ close all;
%rng(0); % random seed for repeatable result
% 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
N = 1000;
......@@ -67,9 +67,9 @@ rad = [0:N-1]*2*pi/N;
deg = [0:N-1]*360/N;
% Try noise or sinus inputs
input = ampl*randn(1,N); % Gaussian with sigma = ampl
input = ampl*2*rand(1,N)-1; % Uniform full scale ampl range
input = ampl*sin(rad); % Sinus with amplitude = ampl
input = ampl*randn(1,N); % Gaussian with sigma = ampl
input = ampl*(2*rand(1,N)-1); % Uniform full scale ampl range
input = ampl*sin(rad); % Sinus with amplitude = ampl
% Determine correlator output for the input and the phase shifted input
% for reference, null, null_scaled, clip and wrap.
......
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