std2.m
来自「有关matlab的电子书籍有一定的帮助希望有用」· M 代码 · 共 22 行
M
22 行
function s = std2(a)
%STD2 Compute standard deviation of matrix elements.
% B = STD2(A) computes the standard deviation of the values in
% A.
%
% Class Support
% -------------
% A is an array of class uint8 or double. B is a scalar of
% class double.
%
% See also CORR2, MEAN2, MEAN, STD.
% Clay M. Thompson 10-6-92
% Copyright 1993-1998 The MathWorks, Inc. All Rights Reserved.
% $Revision: 5.8 $ $Date: 1997/11/24 15:36:25 $
if (~isa(a,'double'))
a = double(a);
end
s = std(a(:));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?