code/flowRatePulseA_f_reg.m