Home > lukes_code > trigPoint > demodNoBG.m

demodNoBG

PURPOSE ^

Demodulate a parameter x and don't subtract the background values

SYNOPSIS ^

function z = demodNoBG( ichoice, x )

DESCRIPTION ^

 Demodulate a parameter x and don't subtract the background values

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function z = demodNoBG( ichoice, x )
0002 % Demodulate a parameter x and don't subtract the background values
0003 i = ichoice;
0004 imax = 10;
0005 k = 1;
0006 while i<( length(x) - imax )
0007     z(k) = mean([x(i) x(i+1) x(i+2) x(i+3)]);
0008     i = i + 10;
0009     k = k + 1;
0010 end
0011 end

Generated on Sun 14-Jun-2015 17:12:45 by m2html © 2005