Skip to content

Commit

Permalink
change prz to remove zero weights to avoid spurious poles
Browse files Browse the repository at this point in the history
  • Loading branch information
nakatsukasayuji committed Apr 15, 2023
1 parent 37d1c85 commit 9ed8763
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prz.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
% Copyright 2018 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

ix = find(wj==0); % indices w/ zero weights; to be removed to avoid spurious poles
wj(ix) = []; fj(ix) = []; zj(ix) = [];
m = length(wj);

% Compute poles via generalized eigenvalue problem:
Expand Down

0 comments on commit 9ed8763

Please sign in to comment.