www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgexpr/getSwitchGrid.m

    function gridOK = getSwitchGrid(m, pGrid)
%GETSWITCHGRID Generate a logical grid of valid sites 
%
%  GRID = GETSWITCHGRID(M, PGRID) returns a logical grid of true/false
%  values corresponding to every combination of input settings specified by
%  the gridded inports, PGRID, for the expression.

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


gridOK = evaluategrid(m , pGrid, @isSwitchPoint, true);