We have just updated the way we compute the residues; this *might* resolve your issue, could you try it out (I think the link on the website is up-to-date, containing this:
% Compute more accurate residues, if nargout > 2:
if ( nargout > 2 )
deg = max(0, length(zer)-length(pol) );
A = [Z.^(0:deg) 1./(Z-pol.')];
c = A\F;
res = c(deg+2:end);
end
if not, please try the latest version on github.
(TBH I would not be too surprised if an issue persists, but I hope this is a step in the right direction).
Best wishes,
Yuji