Home > atplot > plotfunctions > plotB0curlyh.m

plotB0curlyh

PURPOSE ^

SYNOPSIS ^

function plotdata=plotB0curlyh(lindata,ring,dpp,varargin)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function plotdata=plotB0curlyh(lindata,ring,dpp,varargin)
0002 
0003 spl=299792458;
0004 Brho=1e9/spl*(6.03);
0005 
0006 idx=cat(1,lindata.ElemIndex);
0007 H=CurlyHlindata(lindata);
0008 B0=zeros(size(H));
0009 dips=findcells(ring,'BendingAngle');
0010 B0(dips)=Brho*getcellstruct(ring,'BendingAngle',dips)./...
0011     getcellstruct(ring,'Length',dips);
0012 
0013 
0014 beta=cat(1,lindata.beta);                     % left axis
0015 plotdata(1).values=B0;
0016 plotdata(1).labels={'B [T]'};
0017 plotdata(1).axislabel='B [T]';
0018 dispersion=cat(2,lindata.Dispersion)'; % right axis
0019 
0020 plotdata(2).values=[dispersion(:,1)*100 H*10000];
0021 plotdata(2).labels={'\eta_x [cm]','H [10-2]'};
0022 plotdata(2).axislabel='dispersion , H [cm]';
0023 end

Generated on Thu 24-Aug-2017 18:47:33 by m2html © 2005