Commit ac3443b9 authored by Jakob Gabriel's avatar Jakob Gabriel
Browse files

misc.plotEigenvalues: minor fix if no eigenvalue has imaginary part

parent 69c55e12
......@@ -35,8 +35,8 @@ if nargin > 0
realMin = min([real(e{it}); realMin], [], "all");
realMax = max([real(e{it}); realMax], [], "all");
imagMin = min([imag(e{it}); imagMin], [], "all");
imagMax = max([imag(e{it}); imagMax], [], "all");
imagMin = min([imag(e{it}); imagMin; realMin], [], "all");
imagMax = max([imag(e{it}); imagMax; abs(imagMin)], [], "all");
end
f1 = figure();
for it = 1 : numel(A)
......
Supports Markdown
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