Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Marco Berzborn
toolbox
Commits
efede6e9
Commit
efede6e9
authored
Jan 18, 2017
by
Markus Mueller-Trapet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include weights for beampattern calculation
parent
483d6b05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
applications/SignalProcessing/Beamforming/ita_beam_beampattern.m
...tions/SignalProcessing/Beamforming/ita_beam_beampattern.m
+6
-2
No files found.
applications/SignalProcessing/Beamforming/ita_beam_beampattern.m
View file @
efede6e9
...
...
@@ -47,7 +47,11 @@ sArgs = struct('pos1_array','itaMicArray','pos2_f','numeric','pos3_steering_th',
%% do the calculation
% positions of array microphones
arrayPositions
=
array
.
cart
;
if
isempty
(
array
.
weights
)
||
numel
(
array
.
weights
)
~=
array
.
nPoints
weights
=
array
.
w
;
else
weights
=
array
.
weights
;
end
% make a matrix with spherical coordinates for the unit sphere with
% given angular resolution
resolution
=
1
;
...
...
@@ -67,7 +71,7 @@ k = 2*pi*f/double(ita_constants('c'));
v
=
squeeze
(
ita_beam_steeringVector
(
k
,
arrayPositions
,
scanPositions
,
sArgs
.
wavetype
));
% ... and multiply with the manifold vector for the steering
% direction to get the beampattern
v_steer
=
ita_beam_steeringVector
(
k
,
arrayPositions
,
steer_vec
,
sArgs
.
wavetype
)
.'
;
v_steer
=
weights
(:)
.*
ita_beam_steeringVector
(
k
,
arrayPositions
,
steer_vec
,
sArgs
.
wavetype
)
.'
;
v
=
v
'*
v_steer
.
/
sum
(
abs
(
v_steer
)
.^
2
);
B
=
reshape
(
v
,
numel
(
theta
),
numel
(
phi
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment