Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
543403ed
Commit
543403ed
authored
3 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Plot more figures.
parent
26d64044
No related branches found
Branches containing commit
No related tags found
1 merge request
!231
Use applications/lofar2/model/pfs_coeff_final.m to create FIR coefficients for...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/model/run_pfir_coeff.m
+10
-2
10 additions, 2 deletions
applications/lofar2/model/run_pfir_coeff.m
with
10 additions
and
2 deletions
applications/lofar2/model/run_pfir_coeff.m
+
10
−
2
View file @
543403ed
...
@@ -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'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment