0001 function varlabels = dsGet_variables_from_meta(xp) 0002 varlabels = {}; 0003 if ~isempty(xp.meta.dynasim) 0004 if ~isempty(xp.meta.dynasim.labels) 0005 myabels = xp.meta.dynasim.labels; 0006 mylabels = myabels(~strcmpi(myabels,'time')); % Remove time 0007 inds = cellfun(@(s) strfind(s,'_'),mylabels,'UniformOutput',0); 0008 varlabels = cellfun(@(s,ind) s(ind+1:end),mylabels,inds,'UniformOutput',0); 0009 end 0010 end 0011 end