Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Re: Timing, Frequency synchronization using matlab
For more info type:
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);
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)..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.