请问如何实现二维数组第一列相同数字的行求平均。
显示 更早的评论
比如下面a是2x7的原始数组,需要最后变成b,就是把第一列相同数字的行求平均
a=[1 2;1 4;2 3;2 5;3 4;3 7;3 1];
% b=[1 3;2 4;3 4];
谢谢各位大佬!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!