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

    function U= loadobj(U)
%LOADOBJ convert name to function handle

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

if ischar(U.funcName)
    U.funcName = str2func(U.funcName);
end
if isstruct(U)
   U = xregusermod(U); 
end