minor changes

This commit is contained in:
Imants Pulkstenis
2019-12-27 13:17:42 +02:00
parent 6a422ee888
commit 1a2289d877
2 changed files with 34 additions and 15 deletions
+4 -3
View File
@@ -68,9 +68,10 @@ title('Linear Magnitude FFT')
ylabel('magnitude'), xlabel('kHz')
figure(4) % plots resultinf fft(in dB) from Matlab functions
ft = fft(data,fftLength+1);
ftMag = abs(ft(1:fftLength+1));
plot (freq3,20*log10(ftMag)), grid minor,
ft = fft(data,fftLength);
ft1 = fftshift(ft);
ftMag = abs(ft1(1:fftLength));
plot (fax_kHz,20*log10(ftMag)), grid minor,
title('dB Magnitude')
ylabel('dB'), xlabel('kHz')