annotate general/funutils/@function_handle/mtimes.m @ 37:beb8a3f4a345

Renamed prefs to options throughout.
author samer
date Mon, 28 Jan 2013 10:52:11 +0000
parents fbc0540a9208
children c388f1c70669
rev   line source
samer@12 1 function h=compose(f,g)
samer@12 2 % compose - Constructs composition of two functions
samer@12 3 %
samer@12 4 % compose :: (B->C), (A{1:N}->B) -> (A{1:N}->C).
samer@12 5 %
samer@12 6 % returns the function h such that h(...) = f(g(...))
samer@12 7
samer@12 8 h=@fg;
samer@12 9 function x=fg(varargin), x=f(g(varargin{:})); end
samer@12 10 end