Mercurial > hg > ishara
annotate sequences/src_cell.m @ 2:7357e1dc2ad6
Simplified scheduler library with new schedule representation.
author | samer |
---|---|
date | Sat, 22 Dec 2012 16:17:51 +0000 |
parents | 672052bd81f8 |
children |
rev | line source |
---|---|
samer@0 | 1 function S=src_cell(D), S=@(z)next_cell(D); |
samer@0 | 2 % src_cell - Data source for cell array of arrays |
samer@0 | 3 % |
samer@0 | 4 % src_cell :: |
samer@0 | 5 % {[P]->[[N,_]]} ~'cell array containing P N-by-? arrays' |
samer@0 | 6 % -> source(N) ~'returns a source of N-dim data sequences'. |
samer@0 | 7 |
samer@0 | 8 function [x,F]=next_cell(D), |
samer@0 | 9 x=D{1}; |
samer@0 | 10 if length(D)==1, F=[]; |
samer@0 | 11 else F=@(z)next_cell(D(2:end)); end |
samer@0 | 12 |