% distance from radius of the head to the center
function [data,units] = compute_rhead_mm(trx,n)
larvae = trx.exp2flies{n};
numlarvae = numel(larvae);
data = cell(1,numlarvae);
for i = 1:numlarvae,
  larva = larvae(i);  
  data{i} = bsxfun(@hypot,trx(larva).yhead_mm,trx(larva).xhead_mm);
end
units = parseunits('mm');
kristinbranson
github-repos/MATLAB/kristinbranson-JAABA/JAABA-5d778a23e3e7cf272df9a89a72b1b66d94f535d7/perframe/larva_compute_perframe_features/compute_rhead_mm.m
JAABA
github-repos/MATLAB/kristinbranson-JAABA
5d778a23e3e7cf272df9a89a72b1b66d94f535d7