Commit ba4883fa authored by Marco Berzborn's avatar Marco Berzborn

removed persistent in ita_smooth

parent b24842be
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment