Mercurial > hg > ishara
annotate general/funutils/@function_handle/rdivide.m @ 38:9d24b616bb06
Added function algebra.
author | samer |
---|---|
date | Tue, 29 Jan 2013 15:59:01 +0000 |
parents | |
children | c388f1c70669 |
rev | line source |
---|---|
samer@38 | 1 % rdivide - Bind arguments to a function using Matlab closure |
samer@38 | 2 % |
samer@38 | 3 % rdivide :: |
samer@38 | 4 % func(A{1}, ..., A{N}->B{1:L}) ~'func from N inputs to L outputs', |
samer@38 | 5 % A{1}, ..., A{M} ~'M<=N input arguments of the correct types' |
samer@38 | 6 % -> func(A{M+1}, ..., A{N}->B{1:L}) ~'func from remaining arguments to returns'. |
samer@38 | 7 |
samer@38 | 8 function g=rdivide(f,args) |
samer@38 | 9 g=@(varargin)f(args{:},varargin{:}); |
samer@38 | 10 end |
samer@38 | 11 |