www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@ViewList/isViewAvailable.m
function ret = isViewAvailable(obj, MS, Index) %ISVIEWAVAILABLE Check whether a view is available % % ISVIEWAVAILABLE(OBJ, MS, INDEX) returns true if a view should be allowed % to be made at the present time. MS must be a handle to the % MessageService that the view will be displaying data from. % % ISVIEWAVAILABLE(OBJ, MS) returns a logical vector containing an entry % for each view that is defined. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin==3 ret = true(size(Index)); else ret = true(1, numViews(obj)); end