Commit bfea93d8 authored by Simone Liuzzo's avatar Simone Liuzzo

inimum vertical size introduced for display issues

parent 39713c4a
function semplotemit(sig)
%SEMPLOTEMIT Plot emittance ellipse
% Detailed explanation goes here
if sig(2,2)<=1e-3
sig(2,2) = 1e-3;
warning('zero initial vertical emittance');
end
emittance2=sig(1,1)*sig(2,2)-sig(1,2)*sig(2,1);
xmax=2*sqrt(sig(1,1));
[xx,zz]=meshgrid(linspace(-xmax,xmax,80),linspace(-0.8*xmax,0.8*xmax,120));
......
Markdown is supported
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