1function addCustomLabel(new_lbl)
2% addCustomLabel(new_lbl)
3% registers a new custom data label
5if ~ischar(new_lbl)
6 error('addCustomLabel: new label should be a character string');
7end
9supported_labels=mr.getSupportedLabels();
10if any(ismember(supported_labels,new_lbl))
11 warning('addCustomLabel: label %s is already known',new_lbl);
12end
14supported_labels{end+1}=new_lbl;
15mr.aux.globalVars('set','SupportedLabels',supported_labels);
17end