Uncorrelated sinuoids

53 visualizzazioni (ultimi 30 giorni)
zozo il 29 Mag 2012
How can I create two uncorrelated sinusoidal signals of same frequency (say 900Hz)?
f1=900; %frequency in Hertz
t_duration=1;% duration of signal (seconds)
fs=10000; %FS sampling freq of the signal Hz
t = 0:1/fs:t_duration-1/fs;
s=10*sin(2*pi*f1*t); %source signal
j= 20*sin(2*pi*f1*t); %jammer signal
What changes should be made in above code to make 's' and 'j' uncorrelated?
0 CommentiMostra -1 commenti meno recentiNascondi -1 commenti meno recenti

Accedi per commentare.

Risposte (2)

Walter Roberson il 29 Mag 2012
You cannot. Two pure sine waves of the same frequency are always correlated. They differ in at most 1/2 a sample period or (phrasing another way) differ only in phase.
To get the signals uncorrelated, at least one needs to be modulated, or they need to be incommensurate frequencies (must be irrational relative to each other.)
3 CommentiMostra 2 commenti meno recentiNascondi 2 commenti meno recenti
Walter Roberson il 30 Mag 2012
A signal that was (900 + Pi) Hz would be uncorrelated to a signal that was at (900 + exp(1)) Hz, at least when measured over a sufficiently long time frame.

Accedi per commentare.

Geoff il 29 Mag 2012
By 'uncorrelated', you just mean out-of-phase, right? This is about as simple as wave generation gets.
Just work out how much of the wavelength to offset it by. Let's say you want a quarter wavelength:
lambda = 0.25;
phase = 2*pi*lambda / f1;
j = 20*sin(2*pi*f1*t + phase);
0 CommentiMostra -1 commenti meno recentiNascondi -1 commenti meno recenti

Accedi per commentare.

Categorie

Scopri di più su Direction of Arrival Estimation in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by