mttGetFieldNames.m 253 B

12345678910
  1. function namelist = mttGetFieldNames(structure,component)
  2. namelist = [] ;
  3. if isfield(structure,component)
  4. field = getfield(structure,component) ;
  5. if ~isempty(field)
  6. namelist = fieldnames(field) ;
  7. end
  8. end