Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
7dadfce6
Commit
7dadfce6
authored
Apr 09, 2018
by
Markus Mueller-Trapet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix for phase plot
parent
3a8d8034
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
kernel/PlotRoutines/ita_plot_polar.m
kernel/PlotRoutines/ita_plot_polar.m
+3
-3
No files found.
kernel/PlotRoutines/ita_plot_polar.m
View file @
7dadfce6
...
...
@@ -117,11 +117,11 @@ if ~isempty(thetaVal)
else
error
([
thisFuncStr
'no appropriate values found, could not create plot'
]);
end
angles
(
angles
>
180
)
=
mod
(
angles
(
angles
>
180
),
180
)
-
180
;
%#ok<AGROW>
angles
(
angles
>
180
)
=
mod
(
angles
(
angles
>
180
),
180
)
-
180
;
end
else
for
iPhi
=
1
:
numel
(
phiVal
)
idxPlotData
=
find
(
abs
(
phi
-
phiVal
(
iPhi
))
<=
phiRes
*
0.4
);
%
#
jtu: magic number 0.4?
idxPlotData
=
find
(
abs
(
phi
-
phiVal
(
iPhi
))
<=
phiRes
*
0.4
);
%jtu: magic number 0.4?
if
~
isempty
(
idxPlotData
)
[
tmpAngles
,
idxAngles
]
=
sort
(
input
.
channelCoordinates
.
theta_deg
(
idxPlotData
));
angles
=
[
angles
;
tmpAngles
.*
signVals
(
iPhi
)];
%#ok<AGROW>
...
...
@@ -162,7 +162,7 @@ if strcmpi(sArgs.plotDomain,'freq')
ita_verbose_info
(
'values are complex => plotting absolute value'
,
0
)
plotData
=
abs
(
plotData
);
end
else
strcmpi
(
sArgs
.
plotType
,
'phase'
)
else
if
strcmpi
(
sArgs
.
plotType
,
'phase'
)
yTitle
=
'deg'
;
plotData
=
unwrap
(
angle
(
plotData
))
.*
180
/
pi
;
if
sArgs
.
normalize
...
...
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