annotate general/funutils/@function_handle/select.m @ 37:beb8a3f4a345
Renamed prefs to options throughout.
author |
samer |
date |
Mon, 28 Jan 2013 10:52:11 +0000 |
parents |
03694e5c8365 |
children |
|
rev |
line source |
samer@13
|
1 % select - Filter cell array with boolean test
|
samer@13
|
2 %
|
samer@13
|
3 % select :: (A->bool), {[N]->A} -> {[M]->A}.
|
samer@13
|
4 % select :: (A->bool), {[1,N]->A} -> {[1,M]->A}.
|
samer@13
|
5 %
|
samer@13
|
6 % eg, select(@iseven,{1,2,3,4}) = {2,4}
|
samer@13
|
7 function Y=select(fn,X), Y=cellfilt(fn,X);
|