colmean.m

来自「duke的tutorial on EM的matlab经典源码」· M 代码 · 共 7 行

M
7
字号
% Mean of the columns of a. Matlab's 'mean' does the wrong thing when a has only one row

function a = colmean(a)

if size(a, 1) > 1
    a = mean(a);
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?