view general/funutils/compose.m @ 8:f0a3d7d7a0e3

Renamed cat_sep function to catsep
author samer
date Mon, 14 Jan 2013 14:54:10 +0000
parents e44f49929e56
children fbc0540a9208
line wrap: on
line source
function h=compose(f,g)
% compose - Constructs composition of two functions
%
% compose :: (B->C), (A->B) -> (A->C).
%
% returns the function h such that h(...) = f(g(...))

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