Home > atdemos > atmatchExamples > FitQuadrupoleLength > VaryMagLength.m

VaryMagLength

PURPOSE ^

SYNOPSIS ^

function r=VaryMagLength(r,DL,indP,indM)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function r=VaryMagLength(r,DL,indP,indM)
0002 
0003 ndp=length(indP);
0004 ndm=length(indM);
0005 
0006 r=atsetfieldvalues(r,indP,'Length',atgetfieldvalues(r,indP,'Length')+DL/ndp);
0007 r=atsetfieldvalues(r,indM,'Length',atgetfieldvalues(r,indM,'Length')-DL/ndm);
0008 
0009 return

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