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

    function out = canRemoveVariable(opts)
%CANREMOVEVARIABLE Check whether free variables can be removed
%
%  CANREMOVEVARIABLE(OPTS) returns true if the options allow for free
%  variables to be removed.

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


out = strcmp(getFreeVariablesMode(opts), 'any') ...
    && numVariables(opts)>0;