Mercurial > hg > ishara
view general/funutils/compose.m @ 6:0ce3c2070089
Removed duplicate code and fixed doc in timed_action.
author | samer |
---|---|
date | Mon, 14 Jan 2013 14:33:37 +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