colstd.m

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

M
9
字号
% Standard deviation of the columns of a. Matlab's 'std' does the wrong thing when a has only one row

function a = colstd(a)

if size(a, 1) > 1
    a = std(a);
else
    a = zeros(size(a));
end

⌨️ 快捷键说明

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