www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conrange/pslGetLocalParameters.m

    function ud = pslGetLocalParameters(con)
%PSLGETLOCALPARAMETERS Get parameters for Simulink version of local constraint.
%
%  UD = PSLGETLOCALPARAMETERS(CON)
%
%  See also CONRANGE,
%           CONRANGE/PSLGETPARAMETERS,
%           CONBASE/PSLGETLOCALPARAMETERS,
%           CONBASE/SLSETPARAMETERS.

%  Copyright 2005 The MathWorks, Inc.


% Scale factor
cif = getActiveFactors( con );
sc = 2 ./ (getMax( cif ) - getMin( cif ));

% Set up parameters
ud = struct( ...
    'Scale', sc  );

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|