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
ba4883fa
Commit
ba4883fa
authored
Dec 22, 2016
by
Marco Berzborn
Browse files
removed persistent in ita_smooth
parent
b24842be
Changes
1
Hide whitespace changes
Inline
Side-by-side
kernel/DSP/Edit/ita_smooth.m
View file @
ba4883fa
...
...
@@ -60,26 +60,22 @@ function varargout = ita_smooth(audioObject, varargin)
thisFuncStr
=
[
upper
(
mfilename
)
':'
];
persistent
smooth_helper
if
isempty
(
smooth_helper
)
% Check if
if
exist
(
'smooth.m'
,
'file'
)
smooth_helper
=
@
smooth
;
smooth_opt
=
[];
ita_verbose_info
(
'Using MATLAB smooth'
,
1
);
else
smooth_helper
=
@
ita_smooth_helper
;
smooth_opt
=
cell
(
1
);
ita_verbose_info
(
'Using lowlevel Toolbox Smooth'
,
1
);
end
% Check if
if
exist
(
'smooth.m'
,
'file'
)
smooth_helper
=
@
smooth
;
smooth_opt
=
[];
ita_verbose_info
(
'Using MATLAB smooth'
,
1
);
else
smooth_helper
=
@
ita_smooth_helper
;
smooth_opt
=
cell
(
1
);
ita_verbose_info
(
'Using lowlevel Toolbox Smooth'
,
1
);
end
%% READ INPUT ARGUMENTS
narginchk
(
1
,
6
);
if
nargin
>=
4
&&
strcmp
(
func2str
(
smooth_helper
),
'smooth'
)
;
if
nargin
>=
4
&&
strcmp
(
func2str
(
smooth_helper
),
'smooth'
)
smooth_opt
=
varargin
(
4
:
end
);
varargin
(
4
:
end
)
=
[];
else
...
...
@@ -366,7 +362,6 @@ for ind = 1:numel(audioObject)
absOut
=
zeros
(
nBins
,
channels
);
phaseOut
=
zeros
(
nBins
,
channels
);
delayOut
=
zeros
(
nBins
,
channels
);
out
=
zeros
(
nBins
,
channels
);
switch
lower
(
dataType
)
case
'real'
...
...
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