www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@sweepset/cell.m
function c= cell(S) %CELL Convert sweepset to cell % % CELL(SS) converts the sweepset into a set of sweeps in cell arrays. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. Ns = size(S,3); s = [tstart(S) size(S.data,1)+1]; c = cell(1,Ns); data = S.data; for i = 1:Ns; c{i} = data(s(i):s(i+1)-1,:); end