view sinks/@sink/tee.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
% tee - T-junction sink, sends copies to two sub-sinks.
function s=tee(snk1,snk2)
	if ~unify_channels(channels(snk1),channels(snk2))
		error('Channel number mismatch');
	end
	s=sinkbinop(@dup,@(c1,c2)unify_channels(c1,c2),snk1,snk2);
end