[cctbxbb] flex index
Monarin Uervirojnangkoorn
monarin at biochem.uni-luebeck.de
Tue Oct 18 02:54:55 PDT 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20111018/4efb2f7b/attachment.htm>
More information about the cctbxbb
mailing list