Skip to content
GitLab
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
8edf6be4
Commit
8edf6be4
authored
Mar 15, 2017
by
Jan-Gerrit Richter
Browse files
added log method to itaHRTF.surf
parent
172dc152
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/Binaural-HRTF/HRTF_class/@itaHRTF/itaHRTF.m
View file @
8edf6be4
...
...
@@ -760,14 +760,18 @@ classdef itaHRTF < itaAudio
end
function
surf
(
varargin
)
sArgs
=
struct
(
'pos1_data'
,
'itaHRTF'
,
'earSide'
,
'L'
,
'freq'
,
5000
,
'type'
,
'directivity'
);
sArgs
=
struct
(
'pos1_data'
,
'itaHRTF'
,
'earSide'
,
'L'
,
'freq'
,
5000
,
'type'
,
'directivity'
,
'log'
,
1
);
[
this
,
sArgs
]
=
ita_parse_arguments
(
sArgs
,
varargin
);
idxF
=
this
.
freq2index
(
sArgs
.
freq
);
position
=
get
(
0
,
'ScreenSize'
);
figure
(
'Position'
,[
10
50
position
(
3
:
4
)
*
0.85
]);
freqData_dB
=
this
.
getEar
(
sArgs
.
earSide
)
.
freqData_dB
;
if
sArgs
.
log
freqData_dB
=
this
.
getEar
(
sArgs
.
earSide
)
.
freqData_dB
;
else
freqData_dB
=
this
.
getEar
(
sArgs
.
earSide
)
.
freqData
;
end
switch
sArgs
.
type
case
'directivity'
surf
(
this
.
dirCoord
,
freqData_dB
(
idxF
,:));
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment