annotate general/funutils/@function_handle/select.m @ 26:8f4a21082c45

It was wrong. Now it is right.
author samer
date Sat, 19 Jan 2013 13:09:31 +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);