I have a signal with centre at 0.5Khz, how can i shift the signal such that the maximum component occurs at the center of the frequency axis?
Show older comments
figure(3)
Fs=1e6;
t = 0:1/Fs:1.5;
L = length(t);
n = 2^nextpow2(L);
y=fft(signal,n);
f = Fs*(0:(n/2))/n;
P = abs(y/n);
plot(f,P(1:n/2+1))
1 Comment
Kunal Khosla
on 4 Apr 2019
Accepted Answer
More Answers (0)
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!