www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xreghybridrbf/loadobj.m

    function R= loadobj(R);
%LOADOBJ

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.

if ~isempty(R.om) && any(strcmp(getname(R.om),{'TrialWidths','WidPerDim'}))
    % update to new algorithm
    om= widthstep(R);
    R.om= setAltMgrs(R.om,getAltMgrs(get(om,'WidthAlgorithm')));
    set(om,'WidthAlgorithm',R.om);
    omStep= lsqom(R);
    omStep= setAltMgrs(omStep,getAltMgrs(get(om,'StepAlgorithm')));
    om= set(om,'StepAlgorithm',omStep);
    R.om= om;
end