www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@hierarchicalresponse/DoubleInputData.m
function X= DoubleInputData(R,TestNumber) %DOUBLEINPUTDATA Get the input data for fitting this response. % % INPUTDATA = DOUBLEINPUTDATA( RESPONSE ) returns an double array % containing the input data used for fitting the response. % % INPUTDATA = DOUBLEINPUTDATA( RESPONSE, TESTNUMBER ) returns an double array % containing the input data used for fitting the response at the tests % specified by array TESTNUMBER. % % See also mbcmodel.hierarchicalresponse.OutlierIndices. % Copyright 2004-2007 The MathWorks, Inc. % raw hierarchical response inputs stored in test plan DATA= getdata( mdevtestplan(R.Object),'Y',0); DATA= DATA(:,R.InputSignalNames); if nargin>1 X= double( DATA(:,:,TestNumber) ); else X= double(DATA); end