strahd_von_zarovich
Advanced Member level 4
Hi, i took 2000 samples from my ADC in 20microSeconds , and i have voltage-time data. I want to calculate noise floor since i don't have any signal and i terminated the input with 50 Ohm. My ADC's sampling rate is 100MHz . With the two program below i can plot in the frequency domain. One of it's Ylabel dBm and other one is dBm/Hz i guess . But are they true ? Am i doing right ? And what is my bandwidth to convert dBm/Hz to dBm. The program code with psd's output is dBm/Hz i guess?? :???:
Program 1 :
Program 2 :
Program 1 :
Code:
Fs = 100 * 10^6; %Sampling Rate
[pxx,f] = periodogram(Y,[], length(Y), Fs ,'psd');
plot(f, 10*log10(1000*pxx/100));
Program 2 :
Code:
Fs = 100 * 10^6; %Sampling Rate
[pxx,f] = periodogram(Y,[], length(Y), Fs ,'power');
plot(f, 10*log10(1000*pxx/100));