view general/funutils/@function_handle/mtimes.m @ 13:03694e5c8365

Reorganised some high order list functions to correct class-based method dispatch; fixed some docs.
author samer
date Wed, 16 Jan 2013 12:12:34 +0000
parents fbc0540a9208
children c388f1c70669
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