mttAppend.m 425 B

123456789101112
  1. function information = mttAppend(information,field,items)
  2. if isfield(information,field)
  3. previous = getfield(information,field) ;
  4. if isempty(previous)
  5. information = setfield(information,field,items) ;
  6. else
  7. information = setfield(information,field,[previous,items]) ;
  8. end
  9. else
  10. information = setfield(information,field,items) ;
  11. end