Mercurial > hg > ishara
annotate general/funutils/@function_handle/mrdivide.m @ 39:c388f1c70669
Updated documentation and fixed some bugs in function algebra
author | samer |
---|---|
date | Tue, 29 Jan 2013 17:02:00 +0000 |
parents | 9d24b616bb06 |
children | 79632e7bcb52 |
rev | line source |
---|---|
samer@39 | 1 % mrdivide - Bind one argument to a function using Matlab closure |
samer@38 | 2 % |
samer@39 | 3 % mrdivide :: |
samer@38 | 4 % (A{1:N}->B{1:L}) ~'func from N inputs to L outputs', |
samer@38 | 5 % A{1} ~'first argument' |
samer@38 | 6 % -> (A{2:N}->B{1:L}) ~'func from remaining arguments to returns'. |
samer@38 | 7 |
samer@38 | 8 function g=lt(f,x) |
samer@38 | 9 g=@(varargin)f(x,varargin{:}); |
samer@38 | 10 end |
samer@38 | 11 |