Revision 4dbf0ec391b877f21402aed9e8351fe8f7468d14 authored by D019 Rig on 19 December 2019, 23:25:22 UTC, committed by D019 Rig on 19 December 2019, 23:25:22 UTC
1 parent 4cac1d4
calc_dF_F.m
function vfTrace_dFF0 = calc_dF_F(vfTrace)
% 'vfTrace' is a vector of raw fluorescence values for each frame. Compute
% the 'F0' value, which is the median of the trace. Then compute (F-F0)/F0,
% and return the result in a variable 'vfTrace_dFF0'.
medianVal = median(vfTrace);
vfTrace_dFF0 = (vfTrace - medianVal) / medianVal;
print('a')

Computing file changes ...