www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xreglinear/calcBeta.m
function beta = calcBeta(m) %CALCBETA calculates the beta coefficients from the information % in the store % % beta = calcBeta(m) % See also LEASTSQ % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. beta = zeros(size(m.Store.X,2),1); beta(~m.TermsOut)= m.Store.R\(m.Store.Q'*m.Store.y);