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) ...@@ -60,26 +60,22 @@ function varargout = ita_smooth(audioObject, varargin)
thisFuncStr = [upper(mfilename) ':']; thisFuncStr = [upper(mfilename) ':'];
persistent smooth_helper
if isempty(smooth_helper) % Check if
if exist('smooth.m','file')
% Check if smooth_helper = @smooth;
if exist('smooth.m','file') smooth_opt = [];
smooth_helper = @smooth; ita_verbose_info('Using MATLAB smooth',1);
smooth_opt = []; else
ita_verbose_info('Using MATLAB smooth',1); smooth_helper = @ita_smooth_helper;
else smooth_opt = cell(1);
smooth_helper = @ita_smooth_helper; ita_verbose_info('Using lowlevel Toolbox Smooth',1);
smooth_opt = cell(1);
ita_verbose_info('Using lowlevel Toolbox Smooth',1);
end
end end
%% READ INPUT ARGUMENTS %% READ INPUT ARGUMENTS
narginchk(1,6); narginchk(1,6);
if nargin >= 4 && strcmp(func2str(smooth_helper),'smooth'); if nargin >= 4 && strcmp(func2str(smooth_helper),'smooth')
smooth_opt = varargin(4:end); smooth_opt = varargin(4:end);
varargin(4:end) = []; varargin(4:end) = [];
else else
...@@ -366,7 +362,6 @@ for ind = 1:numel(audioObject) ...@@ -366,7 +362,6 @@ for ind = 1:numel(audioObject)
absOut = zeros(nBins,channels); absOut = zeros(nBins,channels);
phaseOut = zeros(nBins,channels); phaseOut = zeros(nBins,channels);
delayOut = zeros(nBins,channels); delayOut = zeros(nBins,channels);
out = zeros(nBins,channels);
switch lower(dataType) switch lower(dataType)
case 'real' 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