Hi,

I'm using flex and 'd like to get an access to elements fall beyond/ below certain value. eg.
a=[1,4,5,7,5,6,6,1]
anything beyond 5 should be set to 5. (in matlab then a(a>5)=5;)
if you could tell me how to do this quickly for flex, that would be great. for now i use loop and that is... pretty slow.

many thanks.
mona



^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
Institute of Biochemistry,
Institut f�r Neuro- und Bioinformatik,
Graduate School for Computing in Medicine and Life Sciences
University of L�beck,
Ratzeburger Allee 160
L�beck 23538
Germany
Tel: +49451-5004072
Fax: +49451-5004068