www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@ViewList/findViewLabel.m

    function Index = findViewLabel(obj, Label)
%FINDVIEWLABEL Find a view given a label
%
%  INDEX = FINDVIEWLABEL(OBJ, LABEL) returns the index of the view type
%  that matches the label.  If no view matches the label, an empty index is
%  returned.

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


Index = find(strcmp(obj.Labels, Label));