www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregusermod/foptions.m
function [foptsOut]= foptions(U,fopts) %FOPTIONS fitting options % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. try foptsOut= feval(U.funcName,U,'foptions',fopts); if ~isempty(foptsOut) && ~(isstruct(foptsOut) || isa(foptsOut,'xregoptmgr')) error(message('mbc:xregusermod:InvalidValue4', name( U ))) end catch ME if ~strcmp(ME.identifier,'MATLAB:UndefinedFunction') || isempty(strfind(ME.message,'i_foptions')) % It is permissible not to define foptions in the MATLAB file ReportError(U,ME) end foptsOut = fopts; end if isempty(foptsOut) foptsOut= fopts; end