matlab中std2函数计算矩阵的标准差时,分母是除以了n-1还是n?
这是如下代码
function s = std2(a)
%STD2 Standard deviation of matrix elements.
% B = STD2(A) computes the standard deviation of the values in
% A.
%
% Class Support
% -------------
% A can be numeric or logical. B is a scalar of class double.
%
% Example
% -------
% I = imread('liftingbody.png');
% val = std2(I)
%
% See also CORR2, MEAN2, MEAN, STD.
% Copyright 1992-2010 The MathWorks, Inc.
% $Revision: 5.19.4.6 $ $Date: 2010/09/13 16:14:04 $
% validate that our input is valid for the IMHIST optimization
fast_data_type = isa(a,'logical') || isa(a,'int8') || isa(a,'uint8') || ...
isa(a,'uint16') || isa(a,'int16');