In the code I see
ntbuff = 525; %default filter size in iosr toolbox
but in the toolbox, I see
%% assign defaults
if isempty(N)
N = 1025;
end
While it's not corrupting the data, I'm not sure why ntbuff is not set to 512 (or 513 if one is conservative)?