view 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
line wrap: on
line source
function S=src_cell(D), S=@(z)next_cell(D);
% src_cell - Data source for cell array of arrays
%
% src_cell ::
%    {[P]->[[N,_]]} ~'cell array containing P N-by-? arrays'
% -> source(N)      ~'returns a source of N-dim data sequences'.

function [x,F]=next_cell(D), 
	x=D{1}; 
	if   length(D)==1, F=[]; 
	else F=@(z)next_cell(D(2:end)); end