1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-07-06 20:12:55 +00:00
gnss-sdr/src/utils/plot_resampled_prn_code_spectrum.m
Carles Fernandez 228fa3b797 moving things to trunk
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@72 64b25241-fba3-4117-9849-534c7e92360d
2011-10-01 18:45:20 +00:00

15 lines
607 B
Matlab

# Load number of used satellites
satellites = load("./data/satellites.dat")
samples = load("./data/samples.dat")
sampling_frequency = load("./data/sampling_frequency.dat")
signal_duration = 1/(sampling_frequency/samples)
# Plot resampled prn codes spectrum
for i = [0:satellites-1]
figure(i+1);
file_sufix = strcat("_", num2str(i), ".dat");
resampled_prn_code = read_float_binary(strcat("./data/resampled_prn_code_signal", file_sufix));
plot_spectrum(resampled_prn_code, sampling_frequency, signal_duration, ";resampled prn code spectrum;");
endfor
figure(satellites+1);
input "press any key to end..."