function [assays, metrics, days] = parse_fieldnames(fields) % get assay name names = regexp(fields,'(\<[A-Z][\w|-]*)*','match'); assays = cell(numel(names),1); for i=1:numel(assays) assays{i} = names{i}{1}; for j=2:numel(names{i}) assays{i} = sprintf('%s %s',assays{i},names{i}{j}); end end % get metric name metrics = regexp(fields,'(?