www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xreglinear/alias.m
function a=alias(m) %ALIAS Alias matrix % Returns alias matrix for m and coded design matrix X % This function expects data to be in m.store. Use initstore % first to set this up % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~isfield(m.Store,'Q') error(message('mbc:xreglinear:InvalidState')); end if m.Store.DispOrder T = terms2(m); else T = Terms(m); end z2=m.Store.X(:,~T); % pad z2 a=m.Store.R\(m.Store.Q'*z2);