Average column data with specific values
Show older comments
I have the data below, I am trying to average the column gdppc for each country.

Accepted Answer
More Answers (1)
Simon Chan
on 23 Aug 2022
G = groupsummary(T,"country","mean","gdppc") % where T is the table array
1 Comment
Nick Austinos
on 23 Aug 2022
Categories
Find more on Tables in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!