www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@fitalgorithm/presubsasgn.m

    function v = presubsasgn(obj,prop,v)
%PRESUBSASGN pre subsasgn task

%  Copyright 2009 The MathWorks, Inc. 

if strcmp(prop.Type,class(obj)) && ischar(v)
    % create algorithm from string
    subobj = getprop(prop,obj.Object,obj.Converter);
    subobj.Owner = obj.Owner;
    v = subobj.CreateAlgorithm(v);    
end