www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@testplansweepsetfilter/convertTestIndices.m

    function [indices, allIndices] = convertTestIndices(obj, indicesToAllData)
%CONVERTTESTINDICES Convert test index for all data into test index for actual data
%
%  [INDICES, ALLINDICES] = CONVERTTESTINDICES(OBJ, INDICESTOALLDATA)
%  

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


% Get the sweep guids of the selected data
allguids = getSweepGuids(obj.cachedInfo.globaldata, indicesToAllData);
% Get the data guids
guids = getSweepGuids(sweepset(obj));
% Convert
allIndices = getIndices(guids, allguids);
% Remove any zeros
indices = allIndices(allIndices ~= 0);