view general/funutils/compose.m @ 42:ae596261e75f

Various fixes and development to audio handling
author samer
date Tue, 02 Dec 2014 14:51:13 +0000
parents fbc0540a9208
children
line wrap: on
line source
function h=compose(f,g)
% compose - Constructs composition of two functions
%
% compose :: (B->C), (A{1:N}->B) -> (A{1:N}->C).
%
% returns the function h such that h(...) = f(g(...))

	h=@fg;
	function x=fg(varargin), x=f(g(varargin{:})); end
end