Commit f8e4a9c6 authored by hark's avatar hark

bugfix ita_result2audio.m and problem with .pfp command on 2016b

 please verify if .pfp fix is supported on older Matlab versions
parent 4832caf7
......@@ -110,7 +110,12 @@ input.data = interpData;
% some postprocessing to cancel out effects of extrapolation
if isTime(input)
input = ita_time_window(input,[1.1*processingLimits(1) 0.95*processingLimits(1) 0.8*processingLimits(2) 0.95*processingLimits(2)],'time');
if processingLimits(1) == 0
%only use fadeOut part of timeWindow
input = ita_time_window(input,[0.8*processingLimits(2) 0.95*processingLimits(2)],'time');
else
input = ita_time_window(input,[1.1*processingLimits(1) 0.95*processingLimits(1) 0.8*processingLimits(2) 0.95*processingLimits(2)],'time');
end
elseif ~sArgs.no_filter
input = ita_filter_bandpass(input,'lower',processingLimits(1),'upper',processingLimits(2),'order',20,'zerophase');
end
......
......@@ -118,8 +118,8 @@ setappdata(fgh,'AxisHandles',[axh1 axh2]);
setappdata(fgh,'ActiveAxis',axh1);
setappdata(fgh,'ita_domain', 'frequency and phase');
%% Make first axis current
axes(axh1);
%axes(axh1); hbr - produce error on 2016b
set(fgh,'CurrentAxes',axh1)
%% Return the figure handle
if nargout
varargout{1} = fgh;
......
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