www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregMdlGui/@PolynomialSplineKnotEditor/pSetModel.m

    function pSetModel(obj, m)
%PSETMODEL A short description of the function
%
%  PSETMODEL(OBJ, M)

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


if ~isempty( m ) && isa( m, 'xreg3xspline' )
    newKnots = get( obj.Model, 'naturalknots' );
else
   newKnots = [];
end
obj.Peer.setTableData( newKnots(:) );