diff --git a/kernel/DSP/Edit/ita_smooth.m b/kernel/DSP/Edit/ita_smooth.m index c1881c0d2dfa9a41c648057535c8d3c6eb921d40..e5fe58fc4b370ffe1b872e888a080a489cfee50b 100644 --- a/kernel/DSP/Edit/ita_smooth.m +++ b/kernel/DSP/Edit/ita_smooth.m @@ -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'