annotate general/funutils/compose.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents fbc0540a9208
children
rev   line source
samer@4 1 function h=compose(f,g)
samer@4 2 % compose - Constructs composition of two functions
samer@4 3 %
samer@12 4 % compose :: (B->C), (A{1:N}->B) -> (A{1:N}->C).
samer@4 5 %
samer@4 6 % returns the function h such that h(...) = f(g(...))
samer@4 7
samer@4 8 h=@fg;
samer@4 9 function x=fg(varargin), x=f(g(varargin{:})); end
samer@4 10 end