Yes, this is matching what I am getting. I guess my point of confusion is why these peaks are changing. The dominant frequency is 50 Hz in all three cases. Does Matlab interpret the x-axis scaling in a strange way?
Thanks for the reply!
The cosine is sampled well above the Nyquist limit.
I think it may have to do with the frequency scale, though I don't quite see it. The Matlab code is:
fs = 0.0001;
t = 0:fs:0.5;
y = cos(50*2*pi.*t);
t = 0:fs:1.5;
y = [zeros(1,0.5/fs), y, zeros(1,0.5/fs)]...
Hello,
I have a simple cosine f = 50Hz. When I generate Matlab code to produce 1/2 second of this signal and take the FFT, the response correctly shows a spike at 50 Hz. However, when I bracket the signal with 1/2 seconds of zeros on either side, the frequency response is showing a spike at...
1. Problem Statment:
Sketch the sequence x(n)=\delta(n) + exp(j\theta)\delta(n-1) + exp(j2\theta)\delta(n-2) + ...
3. Attempt at the Solution:
The angle theta is given in this case Can someone remind me of how to multiply a complex exponential by a delta function? This sequence represents...