view sinks/@sink/or.m @ 6:0ce3c2070089

Removed duplicate code and fixed doc in timed_action.
author samer
date Mon, 14 Jan 2013 14:33:37 +0000
parents 672052bd81f8
children
line wrap: on
line source
% or - parallel sink combinator
function s=or(s1,s2), 
	c1=1:channels(s1);
	c2=channels(s1) + (1:channels(s2));
	s=sinkbinop(@vertsplit,@plus,s1,s2);
	function [y1,y2]=vertsplit(x)
		y1=x(c1,:);
		y2=x(c2,:);
	end
end