相关文章推荐
独立的胡萝卜  ·  matlab ...·  2 周前    · 
阳刚的饭盒  ·  Electron 对 SQLite ...·  1 月前    · 
考研的葡萄  ·  RocketMQ TCP ...·  11 月前    · 
开朗的竹笋  ·  python 释放gpu内存-掘金·  1 年前    · 
果断的土豆  ·  MySQL用户行为分析 - 知乎·  1 年前    · 
健壮的排球  ·  golang logrus ...·  1 年前    · 
一个事AIS测得数据矩阵一个是雷达测得的数据矩阵能否给出一个完整得参考程序?谢谢大家了... 一个事AIS测得数据矩阵 一个是雷达测得的数据矩阵
能否给出一个完整得参考程序?谢谢大家了 result=mean([A;B])%A,B是行向量,否则应先将加个'就可以转成行向量了

MEAN Average or mean value.
For vectors, MEAN(X) is the mean value of the elements in X. For
matrices, MEAN(X) is a row vector containing the mean value of
each column. For N-D arrays, MEAN(X) is the mean value of the
elements along the first non-singleton dimension of X.

MEAN(X,DIM) takes the mean along the dimension DIM of X.

Example: If X = [0 1 2
3 4 5]

then mean(X,1) is [1.5 2.5 3.5] and mean(X,2) is [1
4]

Class support for input X:
float: double, single 参考资料: matlab help