www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xreglinear/stderr.m

    function err=stderr(m)
%xreglinear/STDERR   Standard error calculation
%   e=STDERR(m) calculates the standard error of the jth coefficient
%   relative to RMSE

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.




x=eye(size(m.Store.R))/m.Store.R;

err=(sum(x.^2,2)).^0.5;