Suppose I have a table like this toy example:
>> groups = { 'a'; 'a'; 'b'; 'b'; 'c'; 'c'};>> values = [1;2;3;4;5;6];>> exampletable = table(groups, values);
I want another column in the table that finds the sum of the values for each group. How can I do this?
Best Answer