Mercurial > hg > ishara
comparison general/funutils/@function_handle/mrdivide.m @ 38:9d24b616bb06
Added function algebra.
author | samer |
---|---|
date | Tue, 29 Jan 2013 15:59:01 +0000 |
parents | |
children | c388f1c70669 |
comparison
equal
deleted
inserted
replaced
37:beb8a3f4a345 | 38:9d24b616bb06 |
---|---|
1 % lt - Bind one argument to a function using Matlab closure | |
2 % | |
3 % lt :: | |
4 % (A{1:N}->B{1:L}) ~'func from N inputs to L outputs', | |
5 % A{1} ~'first argument' | |
6 % -> (A{2:N}->B{1:L}) ~'func from remaining arguments to returns'. | |
7 | |
8 function g=lt(f,x) | |
9 g=@(varargin)f(x,varargin{:}); | |
10 end | |
11 |