www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@xregbdrydev/pUpgradeConstraint.m
function bdev = pUpgradeConstraint(bdev, friend) %PUPGRADECONSTRAINT Upgrade the constraint for a boundary dev % % BDEV = PUPGRADECONSTRAINT(BDEV, FRIEND) % % See also XREGBDRYDEV, CONBASE, CONINPUTFACTOR. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~isempty( bdev.Constraint ), % Upgrade constraint bdev.Constraint = upgrade( bdev.Constraint, friend ); % Upgrade fit options [spo, bpo, cfo] = loadFitOptions( bdev.Constraint ); bdev.SpecialPointOptions = spo; bdev.BoundaryPointOptions = bpo; bdev.ConstraintFitOptions = cfo; % Update dynamic version xregpointer( bdev ); end %-------------------------------------------------------------------------- % EOF %--------------------------------------------------------------------------