Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

FSK signal in matlab Phase problem

Status
Not open for further replies.

gresoul

Electrical
Apr 1, 2003
1
hello Im trying to generate a FSK signal in Matlab. The FSK signal is the concatenation of sinusoidal tones at two differend frequencies 1650 Hz and 1850 Hz

when the following code is run in matlab the first sinusoid does not smoothly trasition into the the second sinusoid (in the middle of the signal):

fs = 15000;
tn = 0:1/fs:0.05;
phi2 = 0;
xx = [cos(2*pi*1650*tn), cos(2*pi*1850*tn + phi2)];
plot (xx);

a different value for phi2 (the second sinusoid) is needed for the signal to look smoother. what is the best value for this phase?

Thanks [thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor