12 lines
259 B
Mathematica
12 lines
259 B
Mathematica
|
function[objs] = setLabel(objs, type, pattern)
|
||
|
|
||
|
if nargin ==2
|
||
|
pattern = type;
|
||
|
end
|
||
|
|
||
|
for o = 1:length(objs)
|
||
|
for s = 1:length(objs(o).sessions)
|
||
|
% ignore type for now
|
||
|
objs(o).sessions(s) = objs(o).sessions(s).setLabel(pattern);
|
||
|
end
|
||
|
end
|