www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/+cgsimfill/@Feature/getAllUnlockedTables.m

    function TabPtrs= getAllUnlockedTables(F)
%GETALLUNLOCKEDTABLES list of all pointers in feature 
%
% TabPtrs= getAllUnlockedTables(F)
%    Tables in subfeatures are included in this list
%    Tables which are completely locked are excluded

%  Copyright 2005-2014 The MathWorks, Inc.

pAll= unique(getAllInputs(F.Object));
isTab= parrayeval(pAll,@istable,{},@false);

TabPtrs= pAll(isTab);
% remove tables which are locked
OK= false(size(TabPtrs));
for i=1:length(TabPtrs)
    Locks= get(TabPtrs(i).info,'vlocks');
    OK(i)= isempty(Locks) || ~all(Locks(:));
end
TabPtrs= TabPtrs(OK);