www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@constar/pInverseCodeData.m
function X = pInverseCodeData(con, X) %PINVERSECODEDATA Code data for use by the model held by a CONSTAR constraint % % X = PINVERSECODEDATA(CON, X) % % The input X should have the correct factors for input to the model. You can % use PFILTERFACTORS to extract the correct columns. % % The coding is set-up by PSETMODELCODING and performed by PCODEDATA. % % See also CONSTAR, % CONBASE/PFILTERFACTORS, % CONSTAR/PCODEDATA, % CONSTAR/PSETMODELCODING. % Copyright 2004-2005 The MathWorks, Inc. X = invcode( con.Model, X ) + repmat( con.Center, size( X, 1 ), 1 ); %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|