2
## @deftypefn{Function File} {@var{[y,f]} = } grep ( x )
4
## This function is just to save typing and improve
5
## readability, as in foo(find(foo(:,p)),p) vs. grep(foo(:,p))
7
## You can use grep as follows,
9
## y = grep(x) = x(find(x))
10
## [y,f] = [x(find(x)),find(x)]
12
## @seealso{find,strfind}
15
## Author: Etienne Grossmann <etienne@cs.uky.edu>
16
## Last modified: October 2000
18
function [y,f] = grep(x)
19
y = x(:)(f = find(x));
20
## That does not seem to improve anything