Commit 48b6dc0e authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet

bugfix for units

parent 7dadfce6
......@@ -72,11 +72,10 @@ if ~sArgs.overlap_add %signals have similar length, overlap-add makes no sense
else % RSC - use overlap-add
ita_verbose_info('ITA_CONVOLVE:Linear convolution using overlap-add.',2);
source_signal.timeData = fftfilt(double(filter_dat.timeData),double(source_signal.timeData));
% deal with units
source_signal.channelUnits(:) = {ita_deal_units(filter_dat.channelUnits{1},source_signal.channelUnits{1},'*')};
end
%% deal with units
source_signal.channelUnits(:) = {ita_deal_units(filter_dat.channelUnits{1},source_signal.channelUnits{1},'*')};
%% Add history line
source_signal = ita_metainfo_rm_historyline(source_signal,'all');
source_signal = ita_metainfo_add_historyline(source_signal,'ita_convolve',varargin,'withSubs');
......
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