mttGetFieldLength.m 151 B

123456
  1. function N = mttGetFieldLength(structure,vector)
  2. N = 0 ;
  3. if isfield(structure,vector)
  4. N = length(getfield(structure,vector)) ;
  5. end