[S,L] = eval(G,S)
G
[ grouping ] - Grouping object.
S
[ dbase ] - Input dabase with individual contributions.
S
[ dbase ] - Output database with grouped contributions.
L
[ cellstr ] - Legend entries based on the list of group names.
For a model object M, database D and simulation range R,
S = simulate(M,D,R,'contributions=',true) ;
G = grouping(M)
...
G = addgroup(G,GroupName,GroupContents) ;
...
S = eval(S,G)