Continue to Site

# Timing, Frequency synchronization using matlab?

Status
Not open for further replies.

#### Naveed Alam

##### Full Member level 5
if some one have timing and frequency synchronization simulation, (or any of these), using matlab, i desparadely need it.
u can e-mail me at:

nalamkhan@yahoo.com

Re: Timing, Frequency synchronization using matlab

help sound
In the matlab command line.

Here's a fun program.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

function musc_note()
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Make a Musical tone. %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
tl=input('Enter length of tone (sec) ')
Fs=input('Enter the sample rate. (Max=1e5) ')
Tone=input('Enter the note. 50-18000 (in Hz)

t=0: (1/Fs) :tl; % 10 Seconds (time)
y=sin((Tone*t*(2*pi))); % sin is in rad's
sound(y,Fs);
plot(t,y)
yy=y.*(sin(Tone*.3*t*(2*pi)).^2);
display('Press sp-bar to hear w/Mod. ')
pause;
sound(yy,Fs);
plot(t,yy)

% display('Press sp-bar to hear in stereo. ')
% pause;
% z=cos((Tone*t*(2*pi))); % sin is in rad's
% stro=[y',z'];
% sound(stro,Fs);

Hope this helps

Re: Timing, Frequency synchronization using matlab

thanx...but if i m more precise, i must say that i m saying in context of communication(i m working on OFDM TX/RX)..
so, if i send data, then after adding noise etc... how can i synchronize data.. or at least how can i calculate timing and frequency offsets..(and then remove these offsets to get synchronization)..

Status
Not open for further replies.