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

    function [out] = islookup(obj,b)
%@CGSLBLOCK\ISLOOKUP - is a given block a lookuptable type
%
%  OUT = ISLOOKUP(cgslblock,blockHandle)
%  OUT - logical denoting whether the given block is a lookuptable type
%  block

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

[isSupported,objtype] = islibraryblock(obj,b);
if isSupported
    out = ismember(objtype,{'cglookuptwo','cgnormfunction','cglookupone','cgnormaliser'});
end