function [data,units] = compute_max_absdwing_length(trx,n)

flies = trx.exp2flies{n};
nflies = numel(flies);
data = cell(1,nflies);
for i = 1:nflies,
  fly = flies(i);

  data{i} = max(abs(diff(trx(fly).wing_lengthl_mm,1,2)),abs(diff(trx(fly).wing_lengthr_mm,1,2))) ./ trx(fly).dt;
  
end
units = parseunits('mm/s');

