www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimstore/isScalarFreeVariables.m
function stat = isScalarFreeVariables(optimstore) %ISSCALARFREEVARIABLES Return whether all the free variables are scalars % STAT = ISSCALARFREEVARIABLES(OPTIMSTORE) returns TRUE if all the free % variables are scalars and FALSE otherwise. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. nFree = getNumFreeVariables(optimstore); if all(nFree == 1) stat = true; else stat = false; end