www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoppoint/ClearGrid.m
function op = ClearGrid(op,fact_i) % op = ClearGrid(op,fact_i) % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. f = find((op.created_flag(fact_i)==0 & ~isvalid(op.ptrlist(fact_i))) | ... op.created_flag(fact_i)==1); op.grid_flag(fact_i) = 0; if size(op.data,1)>0 op.constant(fact_i) = mean(op.data(:,fact_i)); end op.range(fact_i) = {[]}; if ~isempty(f) % If here we are going to remove this imported data % Caveat : Caller MUST check to ensure that removing this % data does not invalidate other data set factors op = removefactor(op,fact_i(f)); end