www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoppoint/convertAllInputsToBlock.m
function obj = convertAllInputsToBlock(obj) %CONVERTALLINPUTSTOBLOCK Convert all input factors into data blocks % % OBJ = CONVERTALLINPUTSTOBLOCK(OBJ) converts all input factors into a % block of data % Copyright 2005 The MathWorks, Inc. % Convert input factors to be just chunks of data isInput = (obj.factor_type==1); obj.grid_flag(isInput) = 7; obj.range(isInput) = {[]}; % Always fix the block length if there are any blocks if any(obj.grid_flag==7) % Set the blocklen to be the size of the dataset obj.blocklen = size(obj.data, 1); end