annotate general/funutils/@function_handle/select.m @ 61:eff6bddf82e3
tip
Finally implemented perceptual brightness thing.
author |
samer |
date |
Sun, 11 Oct 2015 10:20:42 +0100 |
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);
|