The following code snippet was adopted from function DoB1Scaling:
`function rfGain=DoB1Scaling(PulSeg,dt,ActFA)
global VObj;
flag=zeros(size(PulSeg));
ind=diff(abs(PulSeg));
flag(find(ind<0)+1)=1;
flag(ind>=0)=1;
rfGain=((ActFA/180)pi)/(VObj.Gyrosum(PulSeg.*flag)*dt);`
What's the reason for these operations?
The following code snippet was adopted from function DoB1Scaling:
`function rfGain=DoB1Scaling(PulSeg,dt,ActFA)
global VObj;
flag=zeros(size(PulSeg));
ind=diff(abs(PulSeg));
flag(find(ind<0)+1)=1;
flag(ind>=0)=1;
rfGain=((ActFA/180)pi)/(VObj.Gyrosum(PulSeg.*flag)*dt);`
What's the reason for these operations?