Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
f2d915fb
Commit
f2d915fb
authored
Jul 10, 2020
by
Lennart Reich
Browse files
implemented function
parent
e8141cc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/SoundFieldSimulation/CombinedAtmosphereUrban/ita_cau_virtual_sound_source.m
View file @
f2d915fb
function
[
virtual_source_pos
]
=
ita_cau_virtual_sound_source
(
receiver_pos
,
incident_direction
,
distance_or_attenuation
,
modus
)
%%ita_cau_virtual_sound_source Calculates a virtual sound source from an
%incident direction and distance or spreading loss attenuation.
%incident direction and the distance or spreading loss attenuation.
if
strcmp
(
modus
,
'spreading loss'
)
% distance = 10^(distance_or_attenuation/20);
distance
=
1
/
distance_or_attenuation
;
%attenuation equals 1/r
else
distance
=
distance_or_attenuation
;
end
virtual_source_pos
=
receiver_pos
-
incident_direction
*
distance
/
norm
(
incident_direction
);
end
Write
Preview
Supports
Markdown
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