www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@xregtools/@modeltransfertable/pValueChanged.m

    function pValueChanged(obj, row, col, newvalue)
%PVALUECHANGED A short description of the function.
%
%   PVALUECHANGED(OBJ, ROW, COL, NEWVALUE)

%   Copyright 2005 The MathWorks, Inc.


switch col
    case 2
        obj.TransferAction(row) = newvalue.intValue;
    case 3
        itemNames = newvalue.getItemNames;
        newNames = cell( size(itemNames) );
        for n = 1:length(itemNames)
            newNames{n} = char(itemNames(n));
        end
        obj.ReplaceNames{row} = newNames;
end
obj.pCheckIsValid();