www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cglookup/copyExtrapolationRegionsFrom.m
function [obj, OK] = copyExtrapolationRegionsFrom(obj, table) %COPYEXTRAPOLATIONREGIONSFROM Copy the extrapolation mask from another table % % [OBJ, OK] = COPYEXTRAPOLATIONREGIONSFROM(OBJ, TABLE) copies the % extrapolation regions mask from another table so long as the other table % is the same size as this table. OK is set to true if the operation is % successful, false otherwise. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. OK = false; mask = getExtrapolationRegions(table); if all(size(mask)==size(get(obj, 'values'))) obj = pSetExtrapolationRegions(obj, mask); OK = true; end