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
08c59eb4
Commit
08c59eb4
authored
Dec 11, 2017
by
HBR
Browse files
pass on arguments in plot Fctn itaPZ
parent
6ba21c2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
applications/Binaural-HRTF/HRTF_class/@itaHRTF/itaHRTF.m
View file @
08c59eb4
...
...
@@ -1342,12 +1342,9 @@ classdef itaHRTF < itaAudio
[
this
,
sArgs
]
=
ita_parse_arguments
(
sArgs
,
varargin
);
ah
=
sArgs
.
axes_handle
;
phiC_deg
=
uniquetol
(
round
(
this
.
phi_UniqueDeg
,
1
),
0.05
);
thetaC_deg
=
uniquetol
(
round
(
this
.
theta_UniqueDeg
,
1
),
0.05
);
%hbr: changed to round to 1 decimal in deg, seems more stable
%phiC_deg = rad2deg(unique(round(this.phi_Unique*100)/100));
%thetaC_deg = rad2deg(unique(round(this.theta_Unique*100)/100));
%round to 0.5Deg
phiC_deg
=
unique
(
round
(
this
.
phi_UniqueDeg
*
2
)/
2
);
thetaC_deg
=
unique
(
round
(
this
.
theta_UniqueDeg
*
2
)/
2
);
% create slice
if
numel
(
thetaC_deg
)
>
1
&&
numel
(
phiC_deg
)
>
1
...
...
@@ -1367,11 +1364,11 @@ classdef itaHRTF < itaAudio
% multi defined coordinates
if
numel
(
phiC_deg
)
<
thisC
.
dirCoord
.
nPoints
&&
numel
(
thetaC_deg
)
==
1
ita_verbose_info
(
' Coordinates are not unique!'
,
0
);
[
~
,
ia
]
=
unique
tol
(
thisC
.
dirCoord
.
phi
,
'stable'
);
[
~
,
ia
]
=
unique
(
thisC
.
dirCoord
.
phi
,
'stable'
);
thisC
=
thisC
.
direction
(
ia
);
elseif
numel
(
thetaC_deg
)
<
thisC
.
dirCoord
.
nPoints
&&
numel
(
phiC_deg
)
==
1
ita_verbose_info
(
' Coordinates are not unique!'
,
0
);
[
~
,
ia
]
=
unique
tol
(
thisC
.
dirCoord
.
theta
,
'stable'
);
[
~
,
ia
]
=
unique
(
thisC
.
dirCoord
.
theta
,
'stable'
);
thisC
=
thisC
.
direction
(
ia
);
end
...
...
applications/SignalProcessing/PoleZeroProny/itaPZ.m
View file @
08c59eb4
...
...
@@ -237,10 +237,10 @@ classdef itaPZ
% res = (resp+d+e*s) .* exp(1i*-2*pi*value*ddelay);
end
function
plot_spk
(
this
)
function
plot_spk
(
this
,
varargin
)
% plot spectrum (freq)
res
=
itaAudioAnalyticRational
(
this
);
res
.
plot_spk
;
res
.
plot_spk
(
varargin
{:})
;
end
function
res
=
res_mixed_poles
(
this
)
%pdi implementation using conjugate complex pole pairs
...
...
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