diff --git a/src/utils/matlab/vtl/CN0_sat_plotting.m b/src/utils/matlab/vtl/CN0_sat_plotting.m new file mode 100644 index 000000000..8101a3c80 --- /dev/null +++ b/src/utils/matlab/vtl/CN0_sat_plotting.m @@ -0,0 +1,65 @@ + + + +time_reference_spirent_obs=129780;%s +time_vtl_dump_file=linspace(38,157,length(vtlSolution.CN0_sat)); +%% +%-------------------------------------------------------- +Rx_Dopp_30=figure('Name','RX_Carrier_Doppler_hz'); +subplot(2,3,1); +xlim([0,160]); +xlabel('') +ylabel('CN0 sat (dB-Hz)') +xlabel('time from simulation init (seconds)') +grid on +hold on +title('PRN 30 GNSS-SDR') +plot(time_vtl_dump_file,vtlSolution.CN0_sat(1,:),'o','DisplayName','filtered VTL') +hold off;grid minor + +%-------------------------------------------------------- +subplot(2,3,2); +xlim([0,160]); +xlabel('') +ylabel('CN0 sat (dB-Hz)') +xlabel('time from simulation init (seconds)') +grid on +hold on +title('PRN 29 GNSS-SDR') +plot(time_vtl_dump_file,vtlSolution.CN0_sat(2,:),'o','DisplayName','filtered VTL') +hold off;grid minor +%-------------------------------------------------------- +subplot(2,3,3); +xlim([0,160]); +xlabel('') +ylabel('CN0 sat (dB-Hz)') +xlabel('time from simulation init (seconds)') +grid on +hold on +% legend('PRN 17 GNSS-SDR','Location','eastoutside') +title('PRN 24 GNSS-SDR') +plot(time_vtl_dump_file,vtlSolution.CN0_sat(3,:),'o','DisplayName','filtered VTL') +hold off;grid minor +%-------------------------------------------------------- +subplot(2,3,4); +xlim([0,160]); +xlabel('') +ylabel('CN0 sat (dB-Hz)') +xlabel('time from simulation init (seconds)') +grid on +hold on +title('PRN 12 GNSS-SDR') +plot(time_vtl_dump_file,vtlSolution.CN0_sat(4,:),'o','DisplayName','filtered VTL') +hold off;grid minor +%-------------------------------------------------------- + +subplot(2,3,5); +xlim([0,160]); +xlabel('') +ylabel('CN0 sat (dB-Hz)') +xlabel('time from simulation init (seconds)') +grid on +hold on +title('PRN 10 GNSS-SDR') +plot(time_vtl_dump_file,vtlSolution.CN0_sat(5,:),'o','DisplayName','filtered VTL') +hold off;grid minor \ No newline at end of file