Skip to content
Snippets Groups Projects
Commit 543403ed authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Plot more figures.

parent 26d64044
No related branches found
No related tags found
1 merge request!231Use applications/lofar2/model/pfs_coeff_final.m to create FIR coefficients for...
...@@ -379,6 +379,8 @@ end ...@@ -379,6 +379,8 @@ end
title(['FIR filter coefficients for ', config.design, strNL]); title(['FIR filter coefficients for ', config.design, strNL]);
xlabel(['Taps 1:', num2str(L)]); xlabel(['Taps 1:', num2str(L)]);
ylabel(['Channels 1:', num2str(N)]); ylabel(['Channels 1:', num2str(N)]);
file_name = ['plots/', file_name_prefix, '_coefficients.jpg'];
print(file_name, '-djpeg')
%% Plot FIR-filter DC response per polyphase %% Plot FIR-filter DC response per polyphase
if coeff_w>0 if coeff_w>0
...@@ -402,6 +404,8 @@ if coeff_w>0 ...@@ -402,6 +404,8 @@ if coeff_w>0
xlabel(['Polyphase 1:', num2str(N)]); xlabel(['Polyphase 1:', num2str(N)]);
ylabel(['Sum of taps (with median at zero is ', num2str(dc_polyphases_median), ')']); ylabel(['Sum of taps (with median at zero is ', num2str(dc_polyphases_median), ')']);
grid on; grid on;
file_name = ['plots/', file_name_prefix, '_dc_response_per_polyphase.jpg'];
print(file_name, '-djpeg')
end end
% Plot DC adjustment for LOFAR subband FIR-filter coefficients % Plot DC adjustment for LOFAR subband FIR-filter coefficients
...@@ -433,7 +437,8 @@ grid on; ...@@ -433,7 +437,8 @@ grid on;
title(['Full FIR filter transfer function for ', config.design, strNL]); title(['Full FIR filter transfer function for ', config.design, strNL]);
xlabel('Frequency [channels]'); xlabel('Frequency [channels]');
ylabel('Power [dB]'); ylabel('Power [dB]');
file_name = ['plots/', file_name_prefix, '_fir_transfer_function.jpg']; file_name = ['plots/', file_name_prefix, '_transfer_function_full.jpg'];
print(file_name, '-djpeg')
% . zoomed plot in power % . zoomed plot in power
fig=fig+1; fig=fig+1;
...@@ -447,7 +452,7 @@ grid on; ...@@ -447,7 +452,7 @@ grid on;
title(['Zoomed FIR filter transfer function for ', config.design, strNL]); title(['Zoomed FIR filter transfer function for ', config.design, strNL]);
xlabel('Frequency [channels]'); xlabel('Frequency [channels]');
ylabel('Power'); ylabel('Power');
file_name = ['plots/', file_name_prefix, '_fir_transfer_function.jpg']; file_name = ['plots/', file_name_prefix, '_transfer_function_zoom.jpg'];
print(file_name, '-djpeg') print(file_name, '-djpeg')
% Plot FIR-filter amplitude and phase characteristic using freqz() % Plot FIR-filter amplitude and phase characteristic using freqz()
...@@ -491,3 +496,6 @@ title(['FIR filter sum of power responses between channels for ', config.design, ...@@ -491,3 +496,6 @@ title(['FIR filter sum of power responses between channels for ', config.design,
xlabel('Frequency [channels]'); xlabel('Frequency [channels]');
ylabel('Power'); ylabel('Power');
file_name = ['plots/', file_name_prefix, '_transfer_function_two_channels.jpg'];
print(file_name, '-djpeg')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment