Summarize data in a table
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm looking for a nice way to summarize my data.
I have 5 matrices:
A contains unique(year(t)) a vector with years B contains crew IDs C,D,E contain information related to the crew: salary etc. for each year (so rows= length(B); columns= length(A))
I want to somehow visualize the sum of C, D and E for each year in a summary/table and save that as a pdf, just like I did with my figures/plots.
Anyone knows how to do this?
0 个评论
回答(1 个)
Thorsten
2015-9-18
If C is a years x crews matrix of salaries, you get the sum of the crews' salaries for each year as
sum(C, 2)
Same for the information in D and E.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!