Skip to content

Commit

Permalink
Debugged
Browse files Browse the repository at this point in the history
Corrected issue with nan/inf values in case of showdata=2.
  • Loading branch information
robdahn committed Feb 20, 2025
1 parent c6d2d04 commit 3f4382c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cat_plot_boxplot.m
Original file line number Diff line number Diff line change
Expand Up @@ -761,11 +761,14 @@
if ~isempty(chop)
ii = ii + cumsum(i>=chop);
end

data{ii}(isnan(data{ii}) | isinf(data{ii})) = [];


% estimate kde
n2 = 0;
% Get the next data set from the array or cell array
if iscell(data), col = data{ii}(:);
if iscell(data), col = data{ii}(:);
else col = data(:,ii); end
% estimate # of mesh points w.r.t. data size
n2 = max(n2,ceil(log2(numel(col)))) - 2;
Expand Down Expand Up @@ -1209,6 +1212,7 @@
%---------------------------------------------
function out=fixed_point(t,N,I,a2)
% this implements the function t-zeta*gamma^[l](t)
if isempty(a2), a2=0; end
l=7;
f=2*pi^(2*l)*sum(I.^l.*a2.*exp(-I*pi^2*t));
for s=l-1:-1:2
Expand Down

0 comments on commit 3f4382c

Please sign in to comment.