use a table and then varfun with grouping variable as your station name,
T = cell2table(C,'v',{'stationName','channelName',residual'});
T1 = varfun(@mean,T,'GroupingVariables','stationName');
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!