diff general/funutils/@function_handle/lt.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
line wrap: on
line diff
--- a/general/funutils/@function_handle/lt.m	Tue Jan 29 15:59:01 2013 +0000
+++ b/general/funutils/@function_handle/lt.m	Tue Jan 29 17:02:00 2013 +0000
@@ -1,4 +1,12 @@
-function g=le(f,I)
+% lt - select inputs to function
+%
+% lt :: (A{1:N}=>B{:}), I:[[N]->natural] -> (C{:}=>B{:}) :- C(I)==A(1:N).
+%
+% f<[i,j,k...] is a function which takes any number of arguments
+% but passes only the ith,jth,kth etc arguments to f, returning
+% any values from f.
+
+function g=lt(f,I)
 	if nargout(f)==1, g=@q1; else g=@qn; end
 
 	function x=q1(varargin)