mean: S = mean(X) is the mean value of the elements in X if X is a vector. 
    For matrices, S is a row vector containing the mean value of each 

    column. 

X如果是向量,mean返回X的平均值,X如果是矩阵,mean返回每列的平均值

特别注意:mean(X,1)返回是每列的均值;mean(X,2)返回每行的均值

matlab 中的函数(二)

size:size函数的使用主要用来返回矩阵的行数和列数

D = size(X)    返回行数列数

[M,N] = size(X)   M为行数,N为行数

size(X,1)  返回行数

size(X,2)  返回列数

matlab 中的函数(二)

相关文章:

  • 2021-07-21
  • 2021-05-26
  • 2021-11-17
  • 2022-02-16
  • 2021-11-29
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2021-12-16
  • 2021-12-13
  • 2021-07-09
  • 2021-12-12
  • 2021-12-13
  • 2021-05-13
  • 2021-06-24
相关资源
相似解决方案