1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-07-03 10:32:55 +00:00
gnss-sdr/src/utils/plot_resampled_prn_code_signal.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
482 B
Matlab

# Load number of used satellites
satellites = load("./data/satellites.dat")
# Plot resampled prn codes
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));
resampled_prn_code = resampled_prn_code(1:599);
resampled_prn_code = [resampled_prn_code; -2; +2];
plot(resampled_prn_code, "1*");
endfor
figure(satellites+1);
input "press any key to end..."