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

    function OK= checkmodel(U)
%CHECKMODEL

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

if isa(U.userdefined,'xregmodel')
   OK= checkmodel(U.userdefined);
else
   error(message('mbc:localsurface:InvalidModel'));
end