function ViewHandle = findview(sisodb,ViewID)
%FINDVIEW  Finds handle of requested data view.
%
%   See also SISOTOOL.

%   Author: P. Gahinet  
%   Copyright 1986-2000 The MathWorks, Inc.
%   $Revision: 1.2 $  $Date: 2000/06/14 20:22:13 $

% Clean up handles of deleted views 
sisodb.DataViews = sisodb.DataViews(ishandle(sisodb.DataViews),:);

% Determine if view already exists
ViewTags = get(sisodb.DataViews,'Tag');
ViewHandle = sisodb.DataViews(strcmpi(ViewTags,ViewID),:);
