From ce1cd80a7c0b06c869929348b0c0d17dff59aa6a Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Mon, 17 Oct 2016 15:11:15 +0000
Subject: [PATCH] Corrected title in subband phase plot.

---
 applications/apertif/matlab/delay_tracking_pfb.m | 4 +++-
 applications/apertif/matlab/one_pfb.m            | 4 +++-
 applications/apertif/matlab/psk_pfb.m            | 4 +++-
 applications/apertif/matlab/run_pfb.m            | 4 +++-
 applications/apertif/matlab/run_pfft.m           | 2 +-
 5 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/applications/apertif/matlab/delay_tracking_pfb.m b/applications/apertif/matlab/delay_tracking_pfb.m
index 87924e047b..18da1b8abc 100644
--- a/applications/apertif/matlab/delay_tracking_pfb.m
+++ b/applications/apertif/matlab/delay_tracking_pfb.m
@@ -311,6 +311,7 @@ sub_phase(x) = 0;   % force phase of too small signals to 0
 fig=fig+1;
 figure('position', [xfig+fig*dfig yfig-fig*dfig xfigw yfigw]);
 figure(fig);
+
 subplot(2,1,1);
 data = sub_ampl';
 data = data(:);
@@ -319,12 +320,13 @@ title(sprintf('Subband data - amplitude  (o,x = subband %d,%d for WG subband = %
 xlabel(sprintf('Subbands 0:%d at time 0:%d [Tsub]', tb.nof_subbands-1, tb.nof_tsub-1));
 ylabel('Voltage');
 grid on;
+
 subplot(2,1,2);
 data = sub_phase';
 data = data(:);
 plot(tsub_all, data, 'k', tsub_all(sub_I), data(sub_I), 'ko', tsub_all(sub_Iplus1), data(sub_Iplus1), 'kx');
 ylim([-180 180])
-title(sprintf('Subband data - amplitude  (o,x = subband %d,%d for WG subband = %6.3f)', tb.subband_i, tb.subband_iplus1, tb.subband_wg));
+title(sprintf('Subband data - phase  (o,x = subband %d,%d for WG subband = %6.3f)', tb.subband_i, tb.subband_iplus1, tb.subband_wg));
 xlabel(sprintf('Subbands 0:%d at time 0:%d [Tsub]', tb.nof_subbands-1, tb.nof_tsub-1));
 ylabel('Phase [degrees]');
 grid on;
diff --git a/applications/apertif/matlab/one_pfb.m b/applications/apertif/matlab/one_pfb.m
index b71b41ed3a..d57c29de29 100644
--- a/applications/apertif/matlab/one_pfb.m
+++ b/applications/apertif/matlab/one_pfb.m
@@ -429,6 +429,7 @@ sub_phase(x) = 0;   % force phase of too small signals to 0
 fig=fig+1;
 figure('position', [xfig+fig*dfig yfig-fig*dfig xfigw yfigw]);
 figure(fig);
+
 subplot(2,1,1);
 data = sub_ampl.';
 data = data(:);
@@ -437,12 +438,13 @@ title(sprintf('Subband data - amplitude  (o,x = subband %d,%d for WG subband = %
 xlabel(sprintf('Subbands 0:%d at time 0:%d [Tsub]', tb.nof_subbands-1, tb.nof_tsub-1));
 ylabel('Voltage');
 grid on;
+
 subplot(2,1,2);
 data = sub_phase.';
 data = data(:);
 plot(tsub_all, data, 'k', tsub_all(sub_I), data(sub_I), 'ko', tsub_all(sub_Iplus1), data(sub_Iplus1), 'kx');
 ylim([-180 180])
-title(sprintf('Subband data - amplitude  (o,x = subband %d,%d for WG subband = %6.3f)', tb.subband_i, tb.subband_iplus1, tb.subband_wg));
+title(sprintf('Subband data - phase  (o,x = subband %d,%d for WG subband = %6.3f)', tb.subband_i, tb.subband_iplus1, tb.subband_wg));
 xlabel(sprintf('Subbands 0:%d at time 0:%d [Tsub]', tb.nof_subbands-1, tb.nof_tsub-1));
 ylabel('Phase [degrees]');
 grid on;
diff --git a/applications/apertif/matlab/psk_pfb.m b/applications/apertif/matlab/psk_pfb.m
index a3d89d4c88..64c4d19f5c 100644
--- a/applications/apertif/matlab/psk_pfb.m
+++ b/applications/apertif/matlab/psk_pfb.m
@@ -320,6 +320,7 @@ sub_phase(x) = 0;   % force phase of too small signals to 0
 fig=fig+1;
 figure('position', [xfig+fig*dfig yfig-fig*dfig xfigw yfigw]);
 figure(fig);
+
 subplot(2,1,1);
 data = sub_ampl';
 data = data(:);
@@ -328,12 +329,13 @@ title(sprintf('Subband data - amplitude  (o,x = subband %d,%d for WG subband = %
 xlabel(sprintf('Subbands 0:%d at time 0:%d [Tsub]', tb.nof_subbands-1, tb.nof_tsub-1));
 ylabel('Voltage');
 grid on;
+
 subplot(2,1,2);
 data = sub_phase';
 data = data(:);
 plot(tsub_all, data, 'k', tsub_all(sub_I), data(sub_I), 'ko', tsub_all(sub_Iplus1), data(sub_Iplus1), 'kx');
 ylim([-180 180])
-title(sprintf('Subband data - amplitude  (o,x = subband %d,%d for WG subband = %6.3f)', tb.subband_i, tb.subband_iplus1, tb.subband_wg));
+title(sprintf('Subband data - phase  (o,x = subband %d,%d for WG subband = %6.3f)', tb.subband_i, tb.subband_iplus1, tb.subband_wg));
 xlabel(sprintf('Subbands 0:%d at time 0:%d [Tsub]', tb.nof_subbands-1, tb.nof_tsub-1));
 ylabel('Phase [degrees]');
 grid on;
diff --git a/applications/apertif/matlab/run_pfb.m b/applications/apertif/matlab/run_pfb.m
index 5be728f9cf..6735729754 100644
--- a/applications/apertif/matlab/run_pfb.m
+++ b/applications/apertif/matlab/run_pfb.m
@@ -419,6 +419,7 @@ sub_phase(x) = 0;   % force phase of too small signals to 0
 fig=fig+1;
 figure('position', [xfig+fig*dfig yfig-fig*dfig xfigw yfigw]);
 figure(fig);
+
 subplot(2,1,1);
 data = sub_ampl.';
 data = data(:);
@@ -427,12 +428,13 @@ title(sprintf('Subband data - amplitude  (o,x = subband %d,%d for WG subband = %
 xlabel(sprintf('Subbands 0:%d at time 0:%d [Tsub]', tb.nof_subbands-1, tb.nof_tsub-1));
 ylabel('Voltage');
 grid on;
+
 subplot(2,1,2);
 data = sub_phase.';
 data = data(:);
 plot(tsub_all, data, 'k', tsub_all(sub_I), data(sub_I), 'ko', tsub_all(sub_Iplus1), data(sub_Iplus1), 'kx');
 ylim([-180 180])
-title(sprintf('Subband data - amplitude  (o,x = subband %d,%d for WG subband = %6.3f)', tb.subband_i, tb.subband_iplus1, tb.subband_wg));
+title(sprintf('Subband data - phase  (o,x = subband %d,%d for WG subband = %6.3f)', tb.subband_i, tb.subband_iplus1, tb.subband_wg));
 xlabel(sprintf('Subbands 0:%d at time 0:%d [Tsub]', tb.nof_subbands-1, tb.nof_tsub-1));
 ylabel('Phase [degrees]');
 grid on;
diff --git a/applications/apertif/matlab/run_pfft.m b/applications/apertif/matlab/run_pfft.m
index 4f4bfbcfe5..fbc1bfe6de 100644
--- a/applications/apertif/matlab/run_pfft.m
+++ b/applications/apertif/matlab/run_pfft.m
@@ -289,7 +289,7 @@ data = sub_phase.';
 data = data(:);
 plot(tsub_all, data, 'k', tsub_all(sub_I), data(sub_I), 'ko', tsub_all(sub_Iplus1), data(sub_Iplus1), 'kx');
 ylim([-180 180])
-title(sprintf('Subband data - amplitude  (o,x = subband %d,%d for WG subband = %6.3f)', tb.subband_i, tb.subband_iplus1, tb.subband_wg));
+title(sprintf('Subband data - phase  (o,x = subband %d,%d for WG subband = %6.3f)', tb.subband_i, tb.subband_iplus1, tb.subband_wg));
 xlabel(sprintf('Subbands 0:%d at time 0:%d [Tsub]', tb.nof_subbands-1, tb.nof_tsub-1));
 ylabel('Phase [degrees]');
 grid on;
-- 
GitLab