www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffnode/private/pCheckScalarInputs.m
function ok = pCheckScalarInputs(obj,pAll) %PCHECKSCALARINPUTS Check that all inputs are set to be scalar values % % PCHECKSCALARINPUTS(OBJ) returns true if all of the inputs associated % with the tradeoff are set to be scalar values. % Copyright 2000-2012 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin<2 pAll = [pGetTableInputs(obj), pGetOtherInputs(obj)]; end scalar_ok = pveceval(pAll, @isscalar); ok = all([scalar_ok{:}]);