www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptim/getScriptRunAPIMode.m

    function ret = getScriptRunAPIMode(optim)
%GETSCRIPTRUNAPIMODE Get the run API mode that the script has 
%
%   RET = GETSCRIPTRUNAPIMODE(OPTIM) returns the API mode that the script
%   has defined in its setup.

%   Copyright 2005 The MathWorks, Inc.


[opts, ok] = setupfromscript(optim, 'Options');
if ok
    ret = getRunInterfaceVersion(opts);
else
    % Default to allowing the user to select the API
    ret = -1;
end