Digital Signal Processing Reference
In-Depth Information
1
0.5
0
−0.5
−1
0
10
20
30
40
50
60
70
(a) Sample
1
0.5
0
−0.5
−1
0
10
20
30
40
50
60
70
(b) Sample
Figure 2.13: (a) The real part of a complex exponential series having 7.5 cycles per 73 samples; (b) The
imaginary part of a complex exponential series having 7.5 cycles per 73 samples.
F=3;N=240;
[seqCos,seqSin] = LVGenFreq(1.5ˆ(F/N),F,N)
The relationship given in Eq. (2.4) can be readily verified graphically and numerically using the
following script:
function LVPowerSeriesEquiv(M,k,N)
% LVPowerSeriesEquiv(0.9,3,64)
n = [0:1:N-1]; arg = 2*pi*k/N;
mags = (M.ˆn); maxmags = max(mags);
W2n = mags.*exp(j*arg).ˆn;
rightS = mags.*(cos(n*arg) + j*sin(n*arg));
figure(19); clf; hold on;
plot(real(W2n),imag(W2n),'bo');
plot(real(rightS),imag(rightS),'rx');
grid on; xlabel('Real'); ylabel('Imag')
axis([-maxmags,maxmags,-maxmags,maxmags])
 
Search WWH ::




Custom Search