Home > functions > internal > dsGet_variables_from_meta.m

dsGet_variables_from_meta

PURPOSE ^

SYNOPSIS ^

function varlabels = dsGet_variables_from_meta(xp)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Tue 12-Dec-2017 11:32:10 by m2html © 2005